美文网首页
mysql5.7修改密码

mysql5.7修改密码

作者: mejhwu | 来源:发表于2018-06-07 21:35 被阅读0次
# 方法一
update mysql.user set authentication_string=password('123qwe') where user='root' and Host = 'localhost';

# 方法二
alter user 'root'@'localhost' identified by '123';

# 方法三
set password for 'root'@'localhost'=password('123');

# 最后需要刷新权限
flush privileges;

相关文章

网友评论

      本文标题:mysql5.7修改密码

      本文链接:https://www.haomeiwen.com/subject/cdpnsftx.html