Xampp mysql错误#2002

时间:2014-11-25 05:27:01

标签: mysql-error-2002

任何人都可以帮助我,如何解决这个问题 当我打开localhost / phpmyadmin /

它说     错误     MySQL说:文档

#2002 - No connection could be made because the target machine actively refused it.

The server is not responding (or the local server's socket is not correctly configured). 
Connection for controluser as defined in your configuration failed.

当我运行mysql_start.bat时,它说

Diese Eingabeforderung nicht waehrend des Running beenden
Please dont close Window while MySQL is running
MySQL is trying to start
Please wait  ...
MySQL is starting with mysql\bin\my.ini (console)

MySQL konnte nicht gestartet werden
MySQL could not be started
Press any key to continue . . .

我尝试使用谷歌之前提供的解决方案来修复它 但它仍然无法运作

1 个答案:

答案 0 :(得分:0)

如果您查看文件 mysql_start.bat ,则无论MySQL出错,都会打印出一般错误。

尝试打开命令提示符并键入mysql_start.bat文件中可用的以下命令。

mysql\bin\mysqld --defaults-file=mysql\my.ini --standalone --console

在提示符中运行确切的命令将显示MySQL错误。在我的情况下,my.ini丢失了,我不得不重命名其中一个示例文件并将其放到该位置。