MAMP MySQL 無法啟動

MAMP MySQL 無法啟動

我完全卸載了 MAMP,從 MAMP 網站下載了 MAMP 2 的全新副本,進行了全新安裝。但是,當我嘗試啟動 mysql 時,出現以下錯誤日誌

111120 21:37:49 mysqld_safe Starting mysqld daemon with databases from 

/Applications/MAMP/db/mysql
111120 21:37:50 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case insensitive.  This means that you can corrupt a MyISAM table by accessing it with different cases. You should consider changing lower_case_table_names to 1 or 2
111120 21:37:50 [Note] Plugin 'FEDERATED' is disabled.
111120 21:37:50 InnoDB: The InnoDB memory heap is disabled
111120 21:37:50 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111120 21:37:50 InnoDB: Compressed tables use zlib 1.2.3
111120 21:37:50 InnoDB: Initializing buffer pool, size = 128.0M
111120 21:37:50 InnoDB: Completed initialization of buffer pool
111120 21:37:50 InnoDB: highest supported file format is Barracuda.
111120 21:37:50  InnoDB: Waiting for the background threads to start
111120 21:37:51 InnoDB: 1.1.5 started; log sequence number 1595675
111120 21:37:51 [ERROR] /Applications/MAMP/Library/bin/mysqld: unknown option '--skip-locking'
111120 21:37:51 [ERROR] Aborting

111120 21:37:51  InnoDB: Starting shutdown...
111120 21:37:51  InnoDB: Shutdown completed; log sequence number 1595675
111120 21:37:51 [Note] /Applications/MAMP/Library/bin/mysqld: Shutdown complete

111120 21:37:51 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

我不知道為什麼會發生這種情況。我用谷歌搜尋並確保沒有 MySQL 實例正在運行。似乎沒有什麼幫助。

答案1

檢查您的/etc/my.cnf,或嘗試將其重新命名為/etc/my.cnf.old。或者你可以檢查你的 /etc/my.cnf 是否有任何選項 --skip-locking ?並嘗試再次重新啟動mysql

相關內容