mysql Access denied for user root@localhost错误解决方法

select * from user \G

use mysql

select * from user limit 1 \G

update user set Host='%' where `User`='root' and `Host`='localhost';

select * from user limit 1 \G

flush privileges;

posted on 2015-04-27 15:37  Fun0623  阅读(228)  评论(0编辑  收藏  举报