今天早上上班来打开环境,mysql报了这个错误,猜到的原因应该是昨天晚上下班没等mysql服务器退出就关闭计算机。
2014-05-09 09:44:25 4128 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace manage_yunfan/nav_areasource uses space ID: 2 at filepath: .\manage_yunfan\nav_areasource.ibd. Cannot open tablespace mysql/innodb_index_stats which uses space ID: 2 at filepath: .\mysql\innodb_index_stats.ibd
InnoDB: Error: could not open single-table tablespace file .\mysql\innodb_index_stats.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.

  

解决方法:修改mysql.ini
PS:其实错误日志已经告诉我们该怎么做了:InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
这句话的意思是让我们增加一条配置 设置此innodb_force_recovery > 0,所以我尝试设置为1,然后重启成功。
# The MySQL server
[mysqld]
innodb_force_recovery = 1  /*增加一行,让其独立运行,注意一定要是在mysqld选项下*/

转载于:https://www.cnblogs.com/weixin100/p/3718261.html

mysql日常错误信息解决方法:InnoDB: and force InnoDB to continue crash recovery here.相关推荐

  1. oracle 配置数据库错误,Oracle数据库配置错误信息解决方法

    Oracle数据库配置错误信息 Oralce数据库的错误信息经常会出现,我们看见的都是错误的代码,至于错误原因究竟是什么还一时半会难以解答,所以就把一些常见的错误整理了一下,来看看也许对你有帮助的. ...

  2. linux mysql安装教程 方大帝_discuz论坛出现Can not connect to MySQL server错误的解决方法...

    网站出现了问题,大家一定很着急吧,特别是做网站的,这几天有一台MySQL数据库服务器频繁出现掉线,经排查,并没有哪个网站受攻击,网上搜索了一下,很多人都碰到这问题,全是Windows系统上安装MySQ ...

  3. Qt与MySQL通信错误及解决方法

    错误一:duplicate connetion name 'qt_sql_default_connection',old connection removed 解决办法:程序中多次建立了Qt与MySQ ...

  4. ajax三种错误ie,ie下jquery ajax 80020101错误的解决方法

    注意注释 删除这些注释就可以了 Windows下一个MySQL有些错误的解决方法 1.无论是什么提示.我们有一个直接看错误日志.由于它描述了最具体描述错误日志. 于MySQL安装文件夹中找到 my.i ...

  5. MySQL的配置方法以及数据库配置常见错误及其解决方法

    第一部分.MySQL的配置方法: 以下为笔者整理的mysql 5.5 安装配置教程笔记.通过逐一界面分析,解决大家在配置MySQL数据库时可能存在的疑惑. 首先给出MySQL下载地址:MySQL :: ...

  6. mysql更改可执行文件路径_Mysql 服务 1067 错误 的解决方法:修改mysql可执行文件路径...

    今天遇到mysql服务1067错误的问题,设置使用系统账户也无法启动mysql,后面认证看了系统的配置信息,发现启动文件也就是mysql安装路径是之前的(也说明之前安装mysql,没去卸载直接安装新的 ...

  7. centos linux 系统日常管理4 scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法 第十七节课...

    centos linux 系统日常管理4  scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法  第十七节课 rsync可以增量同步,scp不行 ...

  8. pycharm连接mysql1193错误_pycharm连接mysql数据库提示错误的解决方法_数据库

    忘记phpmyadmin密码怎么重置_数据库 重置phpmyadmin密码的方法是:1.停止mysql服务:2.跳过验证启动mysql:3.重新设置密码:4.更新权限:5.重新启动mysql,如[ki ...

  9. lnk2019 mysql_C++使用MySQL-Connector/C++连接MySQL出现LNK2019错误的解决方法

    C++使用MySQL-Connector/C++连接MySQL出现LNK2019错误的解决方法 使用vs2015开发c++win32项目时,用MySQL-Connector/c++连接MySQL时总是 ...

最新文章

  1. 使用Injection Token将字符串类型的参数注入到类的构造函数里
  2. 面向对象编程其实很简单——Python 面向对象(初级篇)
  3. 软考系统架构师笔记-案例分析重点(二)
  4. ntp时间同步会导致mysql关闭吗_NTP 时间同步网络弱电系统安全监测平台研究
  5. 回溯法 —— 求解子集和问题
  6. figure函数--Matplotlib
  7. SQL 2005 Beta2 和VS 2005 Beta1安装的问题
  8. java前端开发_Java前端开发学习什么内容
  9. 深度卷积神经网络的过程详解——综述
  10. macbook proa1708_Macbook pro2017 a1708转接卡更换大容量硬盘
  11. G - A Question of Ingestion Gym - 101673G
  12. 产品经理入门——必备技能之【产品运营】
  13. linux关闭proftpd服务,Linux ProFTPd安装与卸载详细介绍
  14. 初夏小谈:结构体内存对齐详解
  15. 解决各大浏览器下载文件,文件名中文乱码的问题
  16. Android代码混淆工具Proguard学习
  17. RuntimeError: CUDA out of memory. Tried to allocate 6.38 GiB (GPU 0; 10.76 GiB total capacity; 708.0
  18. 怎样设置word背景图片每一页都不同
  19. 美国留学申请干货--转自 AdmitWrite留学(无图)
  20. 惠普gk100好不好_「商家透露」惠普gk100和gk400区别比较 哪款好?这样选不盲目...

热门文章

  1. Uva10191 复合词
  2. 对一个伪装成微信的加固病毒的分析
  3. next_permutation(,)用法
  4. MIPS(loongson)linux 中添加系统调用
  5. 好文转载 Linux环境进程间通信(五): 共享内存(上)
  6. Activity LaunchMode验证
  7. 蓝桥杯基础训练——Fibonacci数列
  8. R语言如何画个性化词云图
  9. 计算机c语言试题文档,c语言计算机考试试题
  10. python人脸识别门禁系统毕设_树莓派人脸识别门禁系统代码以及代码分析——opencv拍照调用FACE++处理...