---
title: "Incorrect information in file 错误"
author: "jedy"
date: "2007-03-09T05:41:00Z"
tags: []
slug: "incorrect-information-in-file"
draft: false
lastmod: "2007-03-09T05:41:00Z"
id: 304697
url: "https://jedy.iteye.com/blog/304697"
---

更改了innodb的日志文件大小，即innodb\_log\_file\_size的值，重启mysql之后对innodb的表都会报错：\[ERROR] /usr/local/mysql/bin/mysqld: Incorrect information in file: './a/b.frm'。解决办法是修改其值后把日志文件ib\_logfile删掉再启动mysql（请注意备份）。

注：删log之前确保innodb\_fast\_shutdown的值不是2，如果是2则需要先改为1，然后重启使之生效，再关闭mysql删log文件。其默认值是1。

参考：[http://dev.mysql.com/doc/refman/5.0/en/adding-and-removing.html](http://dev.mysql.com/doc/refman/5.0/en/adding-and-removing.html)