【发布时间】:2014-02-11 13:47:14
【问题描述】:
我大约一个月前下载了 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
【问题讨论】:
-
问题是从什么时候开始的?
-
你也可以去实用程序文件夹中的活动监视器并杀死那里的进程。
-
我还建议备份您的 Web 目录文件夹并重新安装 xampp.. 这对我有用。
-
您认为造成问题的原因是什么?
-
我在我的 mac 中安装了另一个 mysql。我停止了那个然后它解决了。