解决 Host not allowed to connect to this MySQL server

Navicat今天连接不到Linux的MySQL,自己在Linux可以登录操作mysql,用Navicat连接就连接不上了。
MySQL不允许远程登录,所以远程登录失败了
1.在Linux登录MySQL
2.use mysql;
3.执行update user set host = '%' where user = 'root';这一句执行完可能会报错,不用管它.
4.FLUSH PRIVILEGES; 刷新

解决 Host not allowed to connect to this MySQL server_第1张图片

你可能感兴趣的:(解决 Host not allowed to connect to this MySQL server)