Ubuntu Server 中MySQL无法远程连接

MySQL 连接服务器时发生”Can not connect to mysql error 10061” 错误:

检查/etc/mysql/my.conf 文件中的bind-address 选项是否设置为服务器的IP ,默认为127.0.0.1

发生”is not allowed to connect to this MySQL server” 错误:

MySQLuser 表中修改host 列的localhost% ,即可以远程连接

猜你喜欢

转载自cher.iteye.com/blog/1434585