Php 如何解决MySQL不在MAMP中启动而不删除并重新安装的问题?

Php 如何解决MySQL不在MAMP中启动而不删除并重新安装的问题?,php,mysql,Php,Mysql,我无法在MAMP上运行MySQL。该站点上的其他文档建议将其全部删除并重新安装MAMP。我在WordPress主题开发项目的中间,已经为它建立了数据库,所以这不是我的选择。 这是错误日志: InnoDB: To fix the problem and start mysqld: InnoDB: 1) If there is a permission problem in the file and mysqld cannot InnoDB: open the file, you should mo

我无法在MAMP上运行MySQL。该站点上的其他文档建议将其全部删除并重新安装MAMP。我在WordPress主题开发项目的中间,已经为它建立了数据库,所以这不是我的选择。 这是错误日志:

InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.
170225 17:42:34 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended
我不知道这告诉了我什么。目前没有运行MySQL进程,至少我从以下信息中了解到了这一点:

danales-MacBook-Pro:~ danale$ killall -9 mysqld
No matching processes belonging to you were found
我正在使用MacBook Pro Sierra。

删除mysql目录中的所有文件(但不是目录):
rm/Applications/MAMP/db/mysql/


文件可能是导致问题的原因,我建议在执行此操作之前将其复制到某个位置。

@ArsalanMithani,您的建议将引导我找到以下文档:。所以,尽管我想知道为什么删除这些文件是有效的,但请继续,并将其作为一个答案发布。补充,我看不到我的评论???我是在别的地方删除的,我想我是在错误的地方删除的。