docker中mysql密码修改

# 修改普通用户,只改一个就好
SET PASSWORD FOR 'youruser' = PASSWORD('xxxxxxxx');

# 修改root用户,改两个
SET PASSWORD FOR 'root' = PASSWORD('xxxxxxxxx');
SET PASSWORD FOR 'root'@'localhost'=PASSWORD('xxxxxxxxx');

https://www.cnblogs.com/leaderjs/p/13206915.html

posted @ 2021-12-07 08:49  吾码的博客  阅读(540)  评论(0编辑  收藏  举报