問題描述
我正在嘗試在端口 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
這篇關于xampp mysql 不在端口 3306 上運行的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!