is not allowed to connect to this MySQL server分析

连接MySQL数据库服务器出现is not allowed to connect to this MySQL server提示信息。

开始以为没有做授权IP授权,但是明明记得已经做了。通过查询监听的3306端口,看到对应的IP是局域网IP

netstat -an | find "3306"

 再查看my.conf看到 [mysqld]段,有

bind-address=192.168.1.101

 mysql server绑定了IP启动,所以使用命令行通过127.0.0.1的TCP协议无法连接。

猜你喜欢

转载自0001111.iteye.com/blog/1828948