提问者:小点点

MySQL数据库不会在XAMPP Manager osx中启动


我大约一个月前下载了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}

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

5)在管理器-osx中重启MySQL


共3个答案

匿名用户

这应该有效:
sudo/Applications/XAMPP/examplefiles/bin/mysql.server启动

匿名用户

1.<code>sudo killall mysqld</code>

2.经理-osx

sudo /Applications/XAMPP/xamppfiles/bin/mysql.server启动

谷歌错误...

错误:

错误!服务器在不更新PID文件的情况下退出(/Applications/XAMPP/xamppfiles/var/mysql/

我的解决方案:

/Applications/XAMPP/examplefiles/etc/my.cnf中更改用户=

$ id
uid=...

$ vim /Applications/XAMPP/xamppfiles/etc/my.cnf
...

匿名用户

如果这些命令对您不起作用:

sudo killall mysqld
sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start

试试这个:

对于XAMPP 7.1.1-0,我将端口号从3306更改为3307。

    < li >单击管理服务器 < li >选择MySQL数据库 < li >单击您右侧的配置 < li >将您的端口号更改为3307 < li >单击确定 < li >关闭您的控制面板并重新启动它。

你现在可以走了。