MAMP:更改到端口3306后,Mysql不会打开

时间:2016-10-26 20:06:50

标签: mysql mamp

像许多其他帖子一样,我试图将我的MAMP MySQL端口从8889切换到3306,我在sql日志中收到以下错误

2016-10-26 16:02:18 9681 [Note] Server hostname (bind-address): '*'; port: 3306
2016-10-26 16:02:18 9681 [Note] IPv6 is available.
2016-10-26 16:02:18 9681 [Note]   - '::' resolves to '::';
2016-10-26 16:02:18 9681 [Note] Server socket created on IP: '::'.
2016-10-26 16:02:18 9681 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
2016-10-26 16:02:18 9681 [ERROR] Do you already have another mysqld server running on port: 3306 ?

我查看了mysqlld的Active Monitor(正如setting mamp ports to 80 and 3306所示)。没有运行的进程

我也尝试了lsof -i:3306,它什么都不返回。

我也尝试了一个不同的端口,它正在工作,所以问题不在于MAMP,而在于具体端口。

我尝试检查终端中的pid(正如此处MAMP - mysql server won't start on port 3306所建议的那样

试图重新启动,但无法正常工作

which mysql -> /Applications/MAMP/Library/bin/mysql

我确实在/ usr / local / mysql下安装了另一个mysql,但它似乎没有被使用。

我确实尝试了

/usr/local/mysql/support-files/mysql.server stop
 ERROR! MySQL server PID file could not be found

我确实看到了

ps aux | grep mysqld
_mysql             100   0.0  1.0  2889832 171596   ??  Ss    2:59PM   0:01.80 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid

但是每次我尝试在mamp上启动服务器时都会添加 我还缺少什么?

0 个答案:

没有答案