Ubuntu Server 中MySQL没法远程连接

Ubuntu Server 中MySQL无法远程连接MySQL 连接服务器时发生”Can not connect to mysql error 10061”错误:

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 MySQLserver”错误:

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