今天安装MYSQL遇到MYSQL ERROR 1130: Host is not allowed to connect to this MySQL server,
试了很多办法都不行
skip-grant-tables 放在my.ini [mysqld]
1、更改任意主机登陆
mysql> use mysql;
mysql> update user set host = '%' where user = 'root' and host='localhost';
2、更新权限
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
遇到error 1133:can't finde any matching row in the user table
始终不能使用,最后分析安装时有提示远程连接出错可能造成USER表出错,把所有用户删除,添加一个新的管理员解决问题。