1. 程式人生 > >mysql遠端連線錯誤1130的解決方案

mysql遠端連線錯誤1130的解決方案

遠端連線Mysql,報錯:ERROR 1130: Host XXX.XXX.XXX.XXX  is not allowed to connect to this MySQL server  

在要遠端連線的機器上用命令列進入mysql:

mysql -u root -p;

use mysql; 

grant all on *.*
to root identified by '密碼'
with grant option;

flush privileges;

即可

感謝原文作者!

原文地址:http://my.oschina.net/maliang0130/blog/207823