解决mysql远程连接报错:1130 . Host ‘xx.xx.xx.xx is not alwed to connect to this MySQL server

mysql -u root -p
mysql>use mysql;
mysql>select 'host' from user where user='root';
mysql>update user set host = '%' where user ='root';
mysql>flush privileges;

如图:
解决mysql远程连接报错:1130 . Host ‘xx.xx.xx.xx is not alwed to connect to this MySQL server_第1张图片

最后成功连接
解决mysql远程连接报错:1130 . Host ‘xx.xx.xx.xx is not alwed to connect to this MySQL server_第2张图片

你可能感兴趣的:(mysql)