MYSQL - 无法连接到 'localhost' 上的 MYSQL 服务器(10061) [英] MYSQL - Cant connect to MYSQL server on 'localhost' (10061)
问题描述
我在我的 PC 上安装了 wamp 服务器(它没有互联网或内联网连接,Windows XP -OS).但是当我访问 MYSQL 时会弹出这个错误.您能否就我如何解决此错误提出任何想法.非常感谢.
Ive install wamp server on my PC(it has no internet or intranet connection, Windows XP -OS). But when I access MYSQL this error popup. Can you give any idea on how can i resolve this error. thank you very much.
无法连接到 'localhost' (10061) 上的 MYSQL 服务器
Cant connect to MYSQL server on 'localhost' (10061)
推荐答案
从命令行(开始/运行/输入cmd,按确定),输入:
from the commandline (start/run/ type cmd, press ok), type:
telnet localhost 3306
如果 MySQL 正在运行,您将看到 mysql 版本(和一些垃圾).
If MySQL is running, you'll see the mysql version (and some garbage).
要查看服务是否正在运行,请键入:
To see if the service is running, type:
sc query mysql
如果它正在运行,您会看到类似的内容:
You'll see something like this if it's running:
SERVICE_NAME: mysql
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE,PAUSABLE,ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
这篇关于MYSQL - 无法连接到 'localhost' 上的 MYSQL 服务器(10061)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!