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 上运行


- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- SQL 临时表问题 2022-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 更改自动增量起始编号? 2021-01-01