xampp mysql 不在端口 3306 上运行
我正在尝试在端口 3306 上运行 xampp MYSQL 数据库,但它既未启动,也未在应用程序日志中显示任何错误.应用程序日志仅显示 Starting MySQL Database...
ProFTPD 和 Apache Web 服务器正在运行,但 MYSQL 始终停止.如果我将端口号更改为 3308,我可以运行它,但我必须在端口 3306 上运行 mysql,因为我的项目团队成员正在使用端口 3306.
I am trying to run xampp MYSQL Database on port 3306, but it gets neither started, nor shown any errors on application log. Application log only shows Starting MySQL Database...
ProFTPD and Apache Web Servers are running, but MYSQL is always stopped.
If I change port number to lets say 3308, I can run it but I have to run the mysql on port 3306 because my project team members are using port 3306.
来自终端的结果:ps -ax |grep mysqld
652 ?? 0:00.02 /bin/sh /Applications/XAMPP/xamppfiles/bin/mysqld_safe --datadir=/Applications/XAMPP/xamppfiles/var/mysql --pid-file=/Applications/XAMPP/xamppfiles/var/mysql/my-mbp.pid
793 ?? 0:11.57 /Applications/XAMPP/xamppfiles/sbin/mysqld --basedir=/Applications/XAMPP/xamppfiles --datadir=/Applications/XAMPP/xamppfiles/var/mysql --plugin-dir=/Applications/XAMPP/xamppfiles/lib/mysql/plugin/ --user=mysql --log-error=/Applications/XAMPP/xamppfiles/var/mysql/my-mbp.err --pid-file=/Applications/XAMPP/xamppfiles/var/mysql/my-mbp.pid --socket=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock --port=3308
4589 ttys000 0:00.00 grep mysqld
如何强制 xampp mysql 在端口 3306 上运行?XAMPP 版本:5.5.38-1
How can I force xampp mysql to run on port 3306? XAMPP Version: 5.5.38-1
推荐答案
我知道这个帖子有点老了,希望我不要违反规则.但是最近我遇到了这个问题,经过与我兄弟的一些讨论,他告诉我可能会在 brew 上运行 mysql,我有.
I know this thread is a bit old, I hope I don't violate rules. But I recently had this problem and after some discussion with my brother, he told me that I might had mysql running with brew, which I had.
所以在终端中我输入了 brew services stop mysql.之后我就可以使用端口 3306 的 xampp 启动 mysql
So in the terminal I typed brew services stop mysql. And after that I was able to start mysql with xampp with port 3306
相关文章