1.进入mysql容器
docker exec -it mysql /bin/bash
2.进入mysql
mysql -uroot -proot
3.修改密码
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
1.进入mysql容器
docker exec -it mysql /bin/bash
2.进入mysql
mysql -uroot -proot
3.修改密码
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';