本地安装了个mysql5.7,发现修改root密码和以往有区别了,特此记录下
进入mysql 更改密码:
mysql> update mysql.user set authentication_string=password('新密码') where user='root' and Host = 'localhost';
mysql> flush privileges;
mysql> quit//关闭
本地安装了个mysql5.7,发现修改root密码和以往有区别了,特此记录下
进入mysql 更改密码:
mysql> update mysql.user set authentication_string=password('新密码') where user='root' and Host = 'localhost';
mysql> flush privileges;
mysql> quit//关闭