1.進(jìn)入mysql容器
docker exec -it mysql /bin/bash
2.進(jìn)入mysql
mysql -uroot -proot
3.修改密碼
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
1.進(jìn)入mysql容器
docker exec -it mysql /bin/bash
2.進(jìn)入mysql
mysql -uroot -proot
3.修改密碼
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';