gpt4 book ai didi

MySQL 服务器未以 MAMP 启动

转载 作者:行者123 更新时间:2023-11-29 02:14:50 24 4
gpt4 key购买 nike

我的 MySQL 服务器无法再在 MAMP 上启动。网上找的解决方法是先退出MAMP,退出MYSQL进程,再启动MAMP。但是在我的情况下没有 MySQL 进程在运行,所以这不起作用。你有什么想法,还有什么过程可以吗?

你可以在这里找到我的错误日志:

2017-01-20 21:40:03 7fff79bb0000 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 ./yunityproject_wordpress/wp_comments.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. 170120 21:40:04 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

最佳答案

刚遇到这个问题。结果是 mamp\tmp\mysql\文件夹中缺少一个 mysql.pid 文件。卸载,重新安装,一切正常。只需确保删除旧的 mamp 文件夹即可。

[巧合?我的 mamp-pro 许可证刚刚过期,然后就发生了这个问题]

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

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