MySQL5.7下修改root密码

本地安装了个mysql5.7,发现修改root密码和以往有区别了,特此记录下

进入mysql  更改密码:

mysql> update mysql.user set authentication_string=password('新密码') where  user='root' and Host = 'localhost';
mysql> flush privileges;
mysql> quit//关闭
原文地址:https://www.cnblogs.com/phpper/p/6634034.html