错误2003(HY000):无法连接到本地主机上的MySQL服务器(10061)
问题描述:
我使用noinstall Zip存档在Microsoft Windows 8上安装了MySQL.但是,当我通过在Windows提示符下执行以下命令进行测试时,出现了上述错误.
I installed MySQL on Microsoft Windows 8 Using a noinstall Zip Archive. But when i tested by executing the following commands on windows prompt, the above error showed up.
C:\> "C:\MySQL\bin\mysqlshow"
C:\> "C:\MySQL\bin\mysql" test
请帮助我.
答
您无需重新启动Windows.
You don't need to restart your windows. The easiest way to achieve this is
- 转到/bin/
- 运行mysqld(服务)
- 关闭cmd提示
- 运行mysql.exe或更好的方法是将位置添加到PATH环境变量中
谢谢