2
我不知道這個問題是特定於我的設置了,但是當我行使MySQL的查詢日誌會導致錯誤
log = /var/log/mysql.log
添加到我的複製,large.cnf文件的mysqld的部分,嘗試重新啓動MySQL服務器出現錯誤
Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/centos-server.pid).
我創建的文件/var/log/mysql.log,它的所有者和組設置爲MySQL和設置在/ var上的權限/登錄777 (暫時)
我在ce ntos,使用MySQL 5.6.5 m8(開發版)。
這是my.cnf文件
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
log = /var/log/mysql.log
您是否嘗試了殺死所有mysql進程,刪除'/ var/lib/mysql/centos- server.pid'並重新啓動MySQL? – 2012-07-19 17:15:46
沒有運行mysql進程。只要我註釋掉log =的那一行,嘗試重新啓動它就完美了。 – JasonM 2012-07-19 17:20:19
我有一位朋友曾經遇到過這個問題。由於某種原因,當他嘗試使用服務mysql開始時,他會得到該錯誤,但只要他嘗試直接運行二進制文件就可以運行。我認爲這是因爲在守護進程腳本中它會啓用日誌記錄,並且mysql不會啓動。 – 2012-07-19 17:23:40