美文网首页
mysql密码修改

mysql密码修改

作者: 进击的PHPer | 来源:发表于2019-11-04 11:28 被阅读0次

 use mysql; 

mysql -uroot -p

mysql> use mysql;

mysql> update user set password=password('root') where user='root';(mysql版本小于5.7)

mysql> update user set authentication_string=password("root") where user='root'; (mysql版本大于5.7)

mysql> flush privileges; 

相关文章

网友评论

      本文标题:mysql密码修改

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