mac上可能勾选了软件自动更新,然后MAMP PRO 升级了。

升级了之后,mysql启动就出问题了,看报错日志:

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 ./wordpress/wp_term_taxonomy.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.

mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

很迷茫,百度搜了一圈,没什么好的方案。转google,终于看到一个:

https://stackoverflow.com/questions/40904630/mamp-wont-start-mysql-server-mac

经测试,执行以下命名,删除这些东西,就可以重启mysql了

$rm/Library/Application\Support/appsolute/MAMP\PRO/db/mysql56/ib_logfile0$rm/Library/Application\Support/appsolute/MAMP\PRO/db/mysql56/ib_logfile1$rm/Library/Application\Support/appsolute/MAMP\PRO/db/mysql56/ibdata1

如果你现在链接数据库没问题了,那就不要往下看了。

——————————————————————————————

接着用数据库可视化工具打开mysql,我用的是MySQLworkbench,发现有些不久前建立的表出问题了。

于是利用MySQLworkbench导出数据。然后清空原先的数据库。

rm -r /Library/Application\ Support/appsolute/MAMP\ PRO/db/mysql56

目录就是上面的这个。

重新导入数据建立schema,一切OK。

mamp mysql启动失败_MAMP PRO mysql无法启动相关推荐

  1. mamp mysql启动失败_MAMP pro mysql 启动失败

    网上有很多关于Mac os 安装MAMP PRO后出现数据库无法启动的故障处理办法,然而每个都试了,完全不能解决问题,错误提示是: InnoDB: The error means the system ...

  2. yum mysql 启动失败_Linux下MySQL数据库yum升级后无法启动解决办法 | 系统运维

    说明: 操作系统:CentOS 5.8 Web运行环境:Apache+MySQL+PHP(全部使用yum命令在线安装) Apache版本:2.2.3 MySQL版本:5.0.95 PHP版本:5.1. ...

  3. mysql innodb启动失败_关于mysql innodb启动失败无法重启的处理方法讲解

    电脑在使用过程中死机,重启后发现mysql没有启动成功,查看错误日志发现是innodb出现问题导致mysql启动失败. 错误日志$ mysql.server start Starting MySQL ...

  4. 非正常关机宝塔mysql启动失败_宝塔mysql启动立刻停止启动失败解决办法

    宝塔mysql启动立刻停止和启动失败大部分原因是主机的内存小了,这种情况多发生于1G内存及以下的主机上面,随着wordpress越来越消耗内存,宝塔也是个非常吃内存的玩意,所以建议购买主机的时候选择1 ...

  5. Mysql 启动失败没日志,MySQL Server 5.7将无法启动,并且未填充错误日志

    我最近在Ubuntu 14.04上安装了MySQL Server 5.7(通过ansible使用this role是具体的).首次安装时启动很好,但是当我尝试重新启动它时,它会永远挂起: sudo s ...

  6. mysql初始化后启动失败_初始化MySQL后服务不能正常启动

    初始化MySQL服务后,使用/etc/init.d/mysqld启动MySQL服务,报错,查看其错误日志error.log: 150413 21:26:54 mysqld_safe mysqld fr ...

  7. mysql启动失败2005_数据库2005服务启动不了

    {"moduleinfo":{"card_count":[{"count_phone":1,"count":1}],&q ...

  8. 应用连接mysql数据库失败_连接MySQL数据库失败频繁的原因

    连接mySQL数据库失败频繁,主要是什么原因造成的? 一年前,我开发了一个网站,租用的是linux下PHP+mySQL的虚拟空间,之前一直工作正常. 近半年来,却频繁出现连接数据库失败错误(一周1~2 ...

  9. MySQL安装失败清理以及MySQL卸载全面教程

    步骤一:停止MySQL服务 组合键"Ctrl+Alt+Del",打开任务管理器,在"服务"列表找到mysql服务,如:"MySQL56",& ...

最新文章

  1. 几个受益终身的英文缩写
  2. 属性项目的定义(property)[ZT]
  3. Android 屏幕尺寸知识
  4. ant design 预览图片_AntD框架的upload组件上传图片时遇到的一些坑
  5. vs2005常用快捷键_包括代码自动缩进
  6. How to remove k__BackingField from Json data
  7. 在 Azure 虚拟机上快速搭建 MongoDB 集群
  8. ps缩略图补丁 安装一次之后 失效,卸载重新安装提示这个,是什么原因
  9. 进行数据分析时,如何过滤报告数据?玩转永洪BI就够了
  10. AlphaGo来了,终结者不远了
  11. java刷票脚本_我来分享一段自己写的刷票脚本 Version 1.0
  12. 红与黑题解(深搜入门ing)
  13. 阿里云建站云企业官网标准版/高级版/尊贵版功能对比及选择方法
  14. 刷题 BFS 广度优先算法 : 大胖子走迷宫 (python, java)
  15. 汽车各档爬坡度曲线matlab,基于MATLAB App Designer的汽车爬坡能力建模与仿真
  16. gis里创建要素面板怎么打开_简单又高效 —— 用GIS快速完成控规编制
  17. 2022“杭电杯”中国大学生算法设计超级联赛(8)补题 1011 (持续更新中)
  18. 如何用好 Google 等搜索引擎?
  19. Hadoop 常用的命令
  20. 程序五杰(吴晓军,鲍岳桥,周志农,刘旭,朱崇君)

热门文章

  1. vue中实现无缝衔接的轮播效果
  2. JavaScript---left与offsetLeft
  3. iOS-富文本之表情文字混排
  4. 索尼w810c属于java,JAVA测试 vs W810c/W900i/K750c_索尼爱立信 K618i_手机其它OS-中关村在线...
  5. 前端学习案例-初识docker
  6. 前后端分离项目知识汇总(阿里云Oss,EasyExcel,视频点播,SpringCloud,Redis,Nuxt)
  7. 对一个整数进行因式分解
  8. MySQL中的索引、视图和DBA操作
  9. 内存不能为read九大原因
  10. STM32--实测STM32F030F4P6待机(standby)功耗-3.7uA(RTC开启)