在 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
[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
它对我有用.
这篇关于MySQL 服务器启动错误“服务器退出而不更新 PID 文件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!