gpt4 book ai didi

MySQL 不以 MAMP 启动

转载 作者:行者123 更新时间:2023-11-29 10:36:12 25 4
gpt4 key购买 nike

我知道这可能看起来重复,但我正在努力。

我成功地使用 MAMP 在一个 session 中启动并运行 Apache 和 MySQL。再来看一遍,MySQL就启动不了了。

我在 Stack 上尝试了各种答案。重新安装/移动目录/确保内容已更新。我没有做的一件事是重命名“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

最佳答案

到目前为止,我已经开始工作了 - 我更改了 Mamp 中 Mysql 文件夹的读写权限以及所有包含的文件夹,它似乎可以工作。

关于MySQL 不以 MAMP 启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46383722/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com