连接远程服务器mysql时,报错: 1130-host ... is not allowed to connect to this MySql server
这是因为默认只让localhost的主机连接,因此要修改库,操作方式如下:
(1)打开mysql控制命令行,输入密码;
(2)输入命令:use mysql;
(3)更新语句:update user set host='%' where user='root';
(4)刷新:fulsh privilegs