xampp mysql doesn#39;t run on port 3306(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
这篇关于xampp mysql 不在端口 3306 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:xampp mysql 不在端口 3306 上运行
基础教程推荐
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
- 带更新的 sqlite CTE 2022-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
