我大约一个月前下载了XAMPP,它工作正常。今天,我安装了语音识别软件,然后重新启动了计算机。从那时起,MySQL就不会在我的manager-osx应用程序中启动。它不会在应用程序日志中抛出“我”的字样。它是这样说的:

Stopping all servers...
Stopping Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd stopped
Stopping ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd stopped
Restarting all servers...
Starting MySQL Database...

Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started

我的ProFTPD和Apache Web服务器都在运行。 MySQL不是。
当我转到phpmyadmin时,它向我抛出此错误消息。
#2002 - No such file or directory
The server is not responding (or the local server's socket is not correctly configured).

请帮我。我不知道该怎么做。

更新:

在四处浏览互联网后,我发现一个用户使用MAMP遇到了类似的问题,另一个用户建议杀死mysql进程,这意味着什么。这可以解决我的问题吗?

更新2:

我找到了解决问题的方法,但还不能解决。所以这是答案:

1)打开终端并输入
sudo su

然后输入您的密码

2)然后输入
ps aux | grep mysql

(只需复制并粘贴)

3)您将需要获取mysql的进程ID。顶部附近应该有数字,例如739或8827

4)使用杀死进程
kill -9 {process id}

这应该看起来像这样:kill -9 739

5)在manager-osx中重新启动MySQL

最佳答案

这应该工作:sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start

关于php - MySQL数据库无法在XAMPP Manager-osx中启动,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21267064/

10-11 05:02
查看更多