mysql> grant all privileges on . to 'root'@'%' identified by 'password123';
mysql> update mysql
.user
set Grant_priv
= 'Y' where user
= 'root';
mysql> delete from user where user='root' and host='localhost';
mysql> flush privileges;
mysql> grant all privileges on . to 'root'@'%' identified by 'password123';
mysql> update mysql
.user
set Grant_priv
= 'Y' where user
= 'root';
mysql> delete from user where user='root' and host='localhost';
mysql> flush privileges;
本文标题:Docker启动的MYSQL无法连接时
本文链接:https://www.haomeiwen.com/subject/legpvhtx.html
网友评论