2014-11-25 160 views
0

有人能帮助我,如何解决这一问题 当我打开本地主机/ phpMyAdmin的/XAMPP MySQL错误#2002

它说 错误 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。蝙蝠,它说

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 . . . 

我试图与解决方案,在谷歌提供之前将其修复但它仍然不起作用

回答

0

如果您查看文件mysql_start.bat它有一个通用的错误打印,无论MySQL的错误。

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

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

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