【问题标题】:Xampp mysql error #2002Xampp mysql 错误 #2002
【发布时间】:2015-01-23 00:33:35
【问题描述】:

任何人都可以帮助我,如何解决这个问题 当我打开 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 . . .

我尝试使用之前在 google 中提供的解决方案来修复它 但是还是不行

【问题讨论】:

    标签: mysql-error-2002


    【解决方案1】:

    如果您查看文件 mysql_start.bat,它会打印一个通用错误,与 MySQL 错误无关。

    尝试打开命令提示符并键入以下命令,该命令可在 mysql_start.bat 文件中找到。

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

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

    【讨论】:

      猜你喜欢
      • 2017-06-25
      • 1970-01-01
      • 2012-05-12
      • 2014-08-26
      • 1970-01-01
      • 2017-09-07
      • 2014-05-23
      • 2016-09-15
      • 2016-01-18
      相关资源
      最近更新 更多