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;
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
网友评论