mysql修改密码遇到的问题
在docker上安装了 mysql 容器,mysql镜像是8.0+版本
修改密码语句:
只针对本机生效
alter user "root"@'localhost' identified by 'newPassword';
针对所有域名生效
alter user "root"@'%' identified by 'newPassword';
在docker上安装了 mysql 容器,mysql镜像是8.0+版本
修改密码语句:
只针对本机生效
alter user "root"@'localhost' identified by 'newPassword';
针对所有域名生效
alter user "root"@'%' identified by 'newPassword';