MAMP4 not launching MySQL



下载了MAMP4,并使用Mac OSX Sierra在MAMP1.9.4上安装(我知道,它很旧)。Apache服务器启动,但MySQL不启动。警告之前的数据库被复制到一个名为mysql56的文件夹中,并且在启动MySQL时需要转换数据库。但是MySQL甚至还没有启动!活动监视器显示没有其他mysql进程正在进行。MAMP错误日志:

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)相同的端口,然后切换到默认端口。Web服务器地址指向我保存网站的目录。将其改回Applications/MAMP/htdocs。什么都不起作用。:(如有任何帮助,我们将不胜感激

哦,在我运行Snow Leopard的旧机器上,它仍然可以使用MAMP1.9.4。

在http://rat32.com/rat32/2016/11/29/how-to-solve-mysql-not-starting-in-mamp-problem/#comment-175889.从Applications/MAMP/db/mysql56中删除了除文件夹外的所有文件。然后重新启动。MAMP立即连接到MySQL服务器,并提示我升级数据库。一切都很好。

我尝试了其他建议。最常见的是检查可能正在运行的任何其他MySQL进程,并通过终端命令杀死它们。另一个建议是在/Library/Application Support/MAMP PRO/db/mysql56中重命名文件ib_logfile0和ib_logile1,但由于我没有启动MAMP PRO,该文件夹不存在。我在Applications/MAMP/db/mysql56中重命名了这两个文件,但这并没有解决问题。只有当我真正删除了这两个文件和第三个文件时,MAMP才能连接到MySQL服务器。

所以,回答我自己的问题似乎很愚蠢,但我只想把它放在这里,以防其他人遇到同样的问题。

将MAMP 4.1与Mac OSX Sierra一起使用。

最新更新