远程连接mysql数据库,1130问题

远程或使用非127.0.0.1和localhost地址连接时,出现代号为1130问题,

ERROR 1130: Host 192.168.2.159 is not allowed to connect to this MySQL server

猜想这是没有授权,将mysql数据库中user表中host列的localhost改为%,重新启动mysql数据库即可。

posted @ 2016-11-29 14:30  战旗  阅读(137)  评论(0编辑  收藏  举报