【问题标题】:MAMP4 not launching MySQLMAMP4 没有启动 MySQL
【发布时间】:2017-05-30 23:30:03
【问题描述】:

使用 Mac OSX Sierra 下载 MAMP4 并安装在 MAMP1.9.4(我知道,它很旧)上。 Apache 服务器启动,但 MySQL 未启动。警告说以前的 db 被复制到一个名为 mysql56 的文件夹中,并且在启动 MySQL 时需要转换 db。但是 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)相同的端口,然后切换到默认端口。网络服务器地址指向我保存网站的目录。将其改回 Applications/MAMP/htdocs。没有任何工作。 :( 任何帮助将不胜感激。

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

【问题讨论】:

    标签: mysql mamp


    【解决方案1】:

    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_logfile1,但由于我没有启动 MAMP PRO,因此该文件夹不存在。我已经重命名了 Applications/MAMP/db/mysql56 中的两个文件,但这并没有解决问题。只有当我真正删除了这两个文件和第三个文件时,MAMP 才能连接到 MySQL 服务器。

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

    在 Mac OSX Sierra 中使用 MAMP 4.1。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-15
      • 1970-01-01
      • 1970-01-01
      • 2016-03-31
      • 2015-04-14
      • 2020-05-11
      • 1970-01-01
      • 2017-06-03
      相关资源
      最近更新 更多