【发布时间】:2016-10-21 09:06:47
【问题描述】:
在 MySQL 中启用了本地主机连接。
但远程(我的笔记本电脑)访问被禁用
Can't connect to MySQL server on "host" (10061)`.
我的端口始终打开 3306。
这是我的配置文件 (/etc/mysql/my.cnf):
#bind-address 0.0.0.0
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
而 MySQL 的状态是:
mysql start/running, process 15204
【问题讨论】:
-
你是在远程连接mysql服务器吗?
-
这是我的错误信息。这里
Can't connect to MySQL server on "host" (10061)。是的,我正在远程连接 mysql 服务器。 -
允许你的用户获取你的ip。看看
http://*.com/questions/8348506/grant-remote-access-of-mysql-database-from-any-ip-address