找不到PID文件 - 服务器退出而不更新PID文件

时间:2014-09-09 16:41:00

标签: mysql osx-mavericks

我已经从我的mac上的pkg安装程序安装了MySQL,当我尝试使用此命令启动它时

/usr/local/mysql/support-files/mysql.server restart

它给了我以下错误:

The server quit without updating PID file (/usr/local/mysql/data/xyz.local.pid)

检查错误日志后,我发现了这个

mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
mysqld_safe mysqld from pid file /usr/local/mysql/data/xyz.local.pid ended

我已经尝试了所有可能的解决方案,我在这里已经关注了相关问题 Missing PID我仍然无法解决此问题。

以下是my.cnf的样子

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = .....

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

我还尝试使用Macports安装MySQL,仍然是同样的问题。

0 个答案:

没有答案
相关问题