1. 程式人生 > >Mysql 連結 1130-Host xxx is not allowed to connect to this MySQL server

Mysql 連結 1130-Host xxx is not allowed to connect to this MySQL server

背景:在阿里雲上面安裝好mysql之後,遠端連結不上。出現下圖錯誤:

解決方法如下:

測試:

所有命令如下:

mysql -uxxx -pxxx

use mysql;

update user set host = '%' where User = 'xxx';

flush privileges;