教程集 www.jiaochengji.com
教程集 >  数据库  >  mysql  >  正文 Can't connect to MySQL server (10060)问题怎么办

Can't connect to MySQL server (10060)问题怎么办

发布时间:2017-01-28   编辑:jiaochengji.com
教程集为您提供Can't connect to MySQL server (10060)问题怎么办等资源,欢迎您收藏本站,我们将为您提供最新的Can't connect to MySQL server (10060)问题怎么办资源
Can't connect to MySQL server意思是无法连接数据库了,那么是什么原因导致mysql报错Can't connect to MySQL server问题呢,我们下面一起来看看操作细节吧。

如下图所示,链接远程的数据库提示Can't connect to MySQL server (10060)。

<center></center>


遇到这个问题,我们首先做一个分析,导致这种状况出现的几种原因:

a、bind-address 对于连接的ip做了一个限定

b、数据库用户只能在指定的ip上连接

c、网络,防火墙可能导致的问题

我们先检查一下用户的设置,可以看出来  root用户是允许任意的机器连接的。

 

<center></center>


检查配置文件,发现配置文件中没有bind-address的设置,故此,判断不是这里的问题。那剩下来就是检查网络问题。


可以看出防火墙已经启用,我们先关闭防火墙,然后再尝试连接。

<center></center><center></center>

再次验证,即可发现数据库可以成功链接了。

<center></center>

 

您可能感兴趣的文章:
Can't connect to MySQL server (10060)问题怎么办
ERROR 2003:Can’t connect to MySQL server on ‘localhost’ (10060)
Can't connect to local MySQL server through socket 问题的解决方法
ERROR 2002 (HY000): Can't connect to local MySQL
mysql提示MySQL server has gone away导入时报错2006错误
php error Can't connect to local MySQL server...的解决方法
MySQL5.5升级5.6后,执行grant出错:ERROR 2013 (HY000): Lost connection to
远程连接MySQL报错ERROR 2003解决办法
远程连接Mysql数据库 ERROR 2003 (HY000)问题的解决方法
Can t connect to local MySQL server through socket /tmp/mysql.sock

[关闭]
~ ~