解决mysql“Access denied for user 'root'@'localhost'”

一:打开mysql控制台,输入: 1 use mysql; 2 3 show tables; 二:输入: 1 select host from user; 2 3 update user set host ='%' where user ='root'; 三:进入计算机的服务界面,重新启动mysql服务就搞定啦。。
相关文章
相关标签/搜索