1130错误是MySQL无法使用客户端远程连接,如navicat连接云机中的mysql,输入下面的语句即可解决
具体解决语句:
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>select 'host' from user where user='root';
更改后还是无法连接则重启MySQL服务即可