我已经从我的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,仍然是同样的问题。