docker部署mysql修改密码
时间: 2023-10-12 18:05:15 浏览: 120
修改mysql密码
要在docker部署的mysql中修改密码,可以按照以下步骤进行操作:
1. 首先,确定你要修改密码的mysql容器的ID或名称。可以使用命令 `docker ps` 查看正在运行的容器列表。
2. 通过执行以下命令,进入mysql容器的shell环境:`docker exec -it <mysql_container_id> /bin/bash`。注意替换 `<mysql_container_id>` 为你的mysql容器ID或名称。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [修改docker里安装的mysql密码,亲测有效](https://blog.csdn.net/scj0725/article/details/127807782)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [docker中mysql的密码修改](https://blog.csdn.net/maojingmaojingl/article/details/129590487)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文