2013-03-05 62 views
11
  • 我安裝了MAMP Pro。在此之前,我設置並刪除了MAMP和XAMPP。我瘋狂地刪除了前兩個的所有文件。從那以後,Apache不在Mamp默認端口8888上運行,而且MySql沒有運行。
  • 一行說「檢查mysqld進程是否已經運行」我檢查了它,它不是! - 這裏是錯誤日誌。
InnoDB: Check that you do not already have another mysqld process 
InnoDB: using the same InnoDB data or log files. 
InnoDB: Unable to lock ./ibdata1, error: 35 
InnoDB: Check that you do not already have another mysqld process 
InnoDB: using the same InnoDB data or log files. 
InnoDB: Unable to lock ./ibdata1, error: 35 
InnoDB: Check that you do not already have another mysqld process 
InnoDB: using the same InnoDB data or log files. 
InnoDB: Unable to lock ./ibdata1, error: 35 
InnoDB: Check that you do not already have another mysqld process 
InnoDB: using the same InnoDB data or log files. 
130305 19:49:08 InnoDB: Unable to open the first data file 
InnoDB: Error in opening ./ibdata1 
130305 19:49:08 InnoDB: Operating system error number 35 in a file operation. 
InnoDB: Error number 35 means 'Resource temporarily unavailable'. 
InnoDB: Some operating system error numbers are described at 
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html 
130305 19:49:08 InnoDB: Could not open or create data files. 
130305 19:49:08 InnoDB: If you tried to add new data files, and it failed here, 
130305 19:49:08 InnoDB: you should now edit innodb_data_file_path in my.cnf back 
130305 19:49:08 InnoDB: to what it was, and remove the new ibdata files InnoDB created 
130305 19:49:08 InnoDB: in this failed attempt. InnoDB only wrote those files full of 
130305 19:49:08 InnoDB: zeros, but did not yet use them in any way. But be careful: do not 
130305 19:49:08 InnoDB: remove old data files which contain your precious data! 
130305 19:49:08 [ERROR] Plugin 'InnoDB' init function returned error. 
130305 19:49:08 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
130305 19:49:08 [ERROR] Unknown/unsupported storage engine: InnoDB 
130305 19:49:08 [ERROR] Aborting 

130305 19:49:08 [Note] /Applications/MAMP/Library/bin/mysqld: Shutdown complete 

130305 19:49:08 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended 
+1

這是解決這個混亂問題的解決方案。 [Aral Balken的博客#1931](http://aralbalkan.com/1931/) – Asis 2013-03-05 18:13:31

回答

52

只要搜索在Mac上的「活動監視器」應用程序,搜索任何任務名爲mysql和結束。 然後重新啓動它將工作的MAMP。希望它能幫助別人。

+3

是的。 ;) 謝謝。 – MEM 2014-05-05 09:33:29

+0

即使我殺了它,它只是重新創建它自己 – pal4life 2014-08-01 18:27:19

+1

謝謝,它爲我工作 – RezaSh 2017-03-28 18:01:21

7

結束任何mysqlmysqld任務(或其他)在您的活動監視器應用程序中。

1

如果你不能用活動監視器, 殺了他們在終端做
$ ps aux | grep mysqld
第二列是進程ID,您可以用停止它(如果它是1234)
$ kill 1234