美文网首页
mysql突然启动不起来了

mysql突然启动不起来了

作者: kyleBoy | 来源:发表于2018-01-02 15:03 被阅读29次

mysql突然启动不起来了

mysql.ini配置也没发生更改过,替换初始的mysql.ini文件后也报一样的错。3306端口也没被占用。

2018-01-02 13:46:35 7fffaa5a6340  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 ./ridu/rd_indexpage.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.

方法1(推荐使用)

删除data目录下的ib_logfile0和ib_logfile1文件,如果是xampp的的话路径在/Applications/XAMPP/xamppfiles/var/mysql下,亲测好用

方法2

如果上面方法1不好使的话,就只能在配置文件里加这个innodb_force_recovery=4强制启动

然后尽快导出能导出的数据

相关文章

  • mysql突然启动不起来了

    mysql突然启动不起来了 mysql.ini配置也没发生更改过,替换初始的mysql.ini文件后也报一样的错。...

  • Unable to open debugger port (12

    遇到问题 项目以前启动正常,突然报错,启动不起来了,报了个Unable to open debugger port...

  • Mac下HomeBrew安装和卸载Mysql

    安装Mysql 设置MySql开机启动 启动Mysql 停止Mysql(设置了开机启动) 停止Mysql(未设置开...

  • dpkg 安装mysql

    下载安装包 安装 解压,安装mysql 启动MySQL 查看端口 OK,服务起来了,安装完毕。

  • brew mysql启动

    启动 mysql, 并设置为开机启动 关闭 mysql 重启 mysql

  • 初涉MySQL

    启动/停止/重启MySQL服务 启动MySQL服务: mysql.server start 停止MySQL服务:...

  • CentOS 7 安装 MYSQL 5.6

    安装 MySQL 安裝 MySQL Repository 安裝 MySQL 套件 启动 MySQL 启动 mysq...

  • Mysql笔记

    MySQL的启动和关闭 启动MySQL服务 net start mysql 关闭MySQL服务 net sto...

  • 1.3MySQL数据库

    MySQL服务启动 命令提示符:net start mysql:启动mysql服务net stop mysql: ...

  • MySQL 常用的指令

    1.mysql 启动停止 mysql.server start 启动mysql.server stop ...

网友评论

      本文标题:mysql突然启动不起来了

      本文链接:https://www.haomeiwen.com/subject/fhzfnxtx.html