MySQL不以MAMP开头
问题描述:
我知道这可能看起来是重复的,但我很挣扎。MySQL不以MAMP开头
我设法使用MAMP为一个会话启动并运行Apache和MySQL。再来一次,MySQL不会启动。
我已经尝试了各种堆栈上的答案。重新安装/移动目录/确保更新。我还没有做的一件事是重命名'ib_logfile' - 因为它们不在那里!
任何人有任何建议吗?
2017-09-23 20:44:46 7fffa5a753c0 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
InnoDB: Error: could not open single-table tablespace file ./mysql/slave_worker_info.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
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.
170923 20:44:46 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended
答
到目前为止,我得到它的工作 - 我更改为毫安Mysql的文件夹的权限读取和写入和所有含文件夹和它似乎工作。
这将有助于看到你的工作my.cnf或类似的配置文件 –