Docker 修改 mysql root 密码 docker exec -it 容器ID /bin/bash mysql -uroot -p SET PASSWORD FOR 'root' = PASSWORD('设置的密码'); docker restart 容器ID