mysql 5.7 ,user表就没有password 这个字段了。

update user set password=password('12345678') where user='root' and host='localhost'; 

这样当然就改不了密码了。

 

update user set authentication_string=password('12345678') where user='root' and Host = 'localhost';
flush privileges;

 

尴尬。

posted on 2017-09-10 11:41  Flink菜鸟  阅读(216)  评论(0)    收藏  举报