2017-02-25 83 views
0

我无法让MySQL在MAMP上运行。本网站上的其他文档建议将其全部删除并重新安装MAMP。我在一个WordPress主题开发项目的中间,并且已经为它建立了数据库,所以这不适合我。这是错误日志:如何在不删除并重新安装的情况下解决MySQL无法在MAMP中启动的问题?

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。请帮忙。

+0

@ArsalanMithani,你的建议让我看到这个文档:http://stackoverflow.com/questions/23455841/mysql-server-wont-start-mamp/28654878#28654878。因此,请继续并将其作为回答发布,但我想知道为什么要删除这些文件。 – Daniel

+0

已添加,我看不到我的评论???我正在删除其他地方,我认为我在错误的地方删除了。 –

回答

1

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

的文件可能会导致此问题,我建议这样做,在什么地方复制它们。

相关问题