MacOS mysql ERROR! The server quit without updating PID file
问题描述
MacOS brew install [email protected]
后
brew install [email protected]
/usr/local/opt/[email protected]/bin/mysql.server start
启动报错
mysql ERROR! The server quit without updating PID file
查看日志/usr/local/var/mysql/*.err,报错的主要是这一行
2020-10-06T12:41:39.921803Z 0 [ERROR] unknown variable 'mysqlx-bind-address=127.0.0.1'
解决方法
如果您能够找到您的my.cnf文件(对我来说,它在/usr/local/etc/my.cnf中),您应该删除或注释以下行:
mysqlx-bind-address = 127.0.0.1
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here