MySQL异常:Can't connect to MySQL server (10060)

MySQL错误:Cant connect to MySQL server (10060)当远程连接MySQL数据库的时候显示Cant connect to MySQ

MySQL错误:Can't connect to MySQL server (10060)

当远程连接MySQL数据库的时候显示Can't connect to MySQL server (10060),我们从以下几个方面入手,找出错误的原因:

1.网络不通。

检查能不能ping通。

2.防火墙设置。

防火墙是否放过mysql的进程,是否屏蔽了mysql的3306端口。

3.mysql的账户设置。

mysql账户是否不允许远程连接。如果无法连接可以尝试以下方法:

    >?select?host,?user?from?user;?