MySQL 服务器启动错误“服务器退出而不更新 PID 文件"
2021-11-20 00:00:00
mysql
在 Mac OS X v10.6 (Snow Leopard) 上,启动 MySQL 会得到以下结果错误:
On Mac OS X v10.6 (Snow Leopard), starting MySQL gives the following error:
服务器退出而不更新PID文件
The server quit without updating PID file
文件 my.cnf
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
key_buffer_size = 16K
pid-file=/var/run/mysqld/mysqld.pid
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
推荐答案
尝试删除 ib_logfile0
和 ib_logfile1
文件,然后再次运行 MySQL:
Try to remove the ib_logfile0
and ib_logfile1
files and then run MySQL again:
rm /usr/local/var/mysql/ib_logfile0
rm /usr/local/var/mysql/ib_logfile1
它对我有用.
相关文章