ocker启动mysql允许远程连接_docker部署mysql

warning: 这篇文章距离上次修改已过754天,其中的内容可能已经有所变动。

先确定一下mysql版本

grant all privileges on *.*  to 'root'@'%';
flush privileges;

mysql8.0以上需要增加

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '密码';
flush privileges;

结束
doker mysql 默认密码:password

none
最后修改于:2022年04月27日 01:42

添加新评论