Error No. 2003: Can't connect to MySQL server on 'localhost' (or some other host)
simply means that connection is not possible for one of the following (or similar) reasons:
1.There is no MySQL server running at the specified host
2.Connection to the MySQL server is not allowed using TCP-IP.
3. Some networking issue prevents connection.
4.When trying to connect to a MySQL server at an ISP this error message often indicates that direct connection to MySQL has been blocked.
出错原因主要是这4个,一般首先看的是mysql服务有没开启。安装时默认开机就启动的,那就不用考虑,如果自己改动过的就要注意下,我自己是关掉的,要手动开启。
本文介绍了MySQL连接错误2003的原因及解决办法,主要包括:MySQL服务未运行、TCP/IP连接被禁止、网络问题及ISP限制等问题,并提供了解决思路。
6万+

被折叠的 条评论
为什么被折叠?



