码迷,mamicode.com
首页 > 数据库 > 详细

mysql异常关闭错误异常处理

时间:2015-10-22 10:44:52      阅读:283      评论:0      收藏:0      [点我收藏+]

标签:

用xmapp启动mysql时报错:

2015-10-22 10:07:32 4904 [Note] InnoDB: Database was not shutdown normally!
2015-10-22 10:07:32 4904 [Note] InnoDB: Starting crash recovery.
2015-10-22 10:07:32 4904 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-10-22 10:07:32 4904 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace logist/jdorder uses space ID: 2 at filepath: .\logist\jdorder.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

 解决方式:

修改mysql/bin/my.ini文件,增加

innodb_force_recovery =1

mysql异常关闭错误异常处理

标签:

原文地址:http://www.cnblogs.com/skywalkerfly/p/4900005.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!