2017-01-16 44 views
0

已下載MAMP4並通過Mac OSX Sierra在MAMP1.9.4上安裝(我知道這很舊)。 Apache服務器啓動,但不是MySQL。警告說前一個數據庫被複制到一個名爲mysql56的文件夾,並且在啓動MySQL時需要轉換數據庫。但MySQL甚至不啓動!活動監視器顯示沒有其他的mysql進程正在進行。 MAMP錯誤日誌:MAMP4未啓動MySQL

2017-01-16 12:35:13 47394 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages! 
2017-01-16 12:35:13 47394 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data! 
2017-01-16 12:35:13 47394 [ERROR] Plugin 'InnoDB' init function returned error. 
2017-01-16 12:35:13 47394 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 
2017-01-16 12:35:13 47394 [ERROR] Unknown/unsupported storage engine: InnoDB 
2017-01-16 12:35:13 47394 [ERROR] Aborting 

我試圖使用作爲我與MAMP1.9.4(80 & 3306)中使用的相同的端口,然後切換到默認值。網絡服務器地址指向我的目錄,我保存我的網站。將其更改回應用程序/ MAMP/htdocs。沒有任何工作。 :(任何幫助將是非常讚賞。

哦,我的運行Snow Leopard的舊機器上的,這一切都仍然MAMP1.9.4工作。

回答

0

找到了解決辦法,在http://rat32.com/rat32/2016/11/29/how-to-solve-mysql-not-starting-in-mamp-problem/#comment-175889。刪除所有文件,除了從應用程序文件夾/ MAMP/db/mysql56。然後重啓MAMP立即連接到MySQL服務器並提示我升級我的數據庫一切正常

我試過其他的建議最常見的是檢查其他任何MySQL進程另一個建議是重命名/ Library/Application Support/MAMP PRO/db/mysql56中的文件ib_logfile0和ib_logfile1,但由於我沒有啓動MAMP PRO,該文件夾不存在。我已經重命名了Applications/MAMP/db/mysql56中的兩個文件,但是這並沒有解決問題。只有當我真正移除了這兩個文件和第三個文件時,MAMP才能夠連接到MySQL服務器。

因此,回答我自己的問題似乎很愚蠢,但只是想把它放在這裏,以防其他人遇到同樣的問題。

在Mac OSX Sierra中使用MAMP 4.1。