douduoquan2824 2017-02-25 22:50
浏览 276
已采纳

如何在不删除并重新安装的情况下解决MySQL没有启动MAMP?

I am unable to get MySQL running on MAMP. Other documentation on this site is suggesting to delete it all and reinstall MAMP again. I was in the middle of a WordPress theme development project and had already built the database for it, so this is not an option for me. This is the error log:

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

I really have no clue what this is telling me. There are no current MySQL processes running, at least that is what I gathered from this:

danales-MacBook-Pro:~ danale$ killall -9 mysqld
No matching processes belonging to you were found

I am using a MacBook Pro Sierra. Please help.

  • 写回答

1条回答 默认 最新

  • doushi7761 2017-02-25 23:05
    关注

    Remove all files (but not directories) in the mysql dir: rm /Applications/MAMP/db/mysql/

    Files may be causing the issue, i suggest copy them somewhere before doing this.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 学不会递归,理解不了汉诺塔参数变化
  • ¥15 基于图神经网络的COVID-19药物筛选研究
  • ¥30 软件自定义无线电该怎样使用
  • ¥15 R语言mediation包做中介分析,直接效应和间接效应都很小,为什么?
  • ¥15 Jenkins+k8s部署slave节点offline
  • ¥15 如何实现从tello无人机上获取实时传输的视频流,然后将获取的视频通过yolov5进行检测
  • ¥15 WPF使用Canvas绘制矢量图问题
  • ¥15 用三极管设计一个单管共射放大电路
  • ¥15 孟德尔随机化r语言运行问题
  • ¥15 pyinstaller编译的时候出现No module named 'imp'