1033 incorrect information in file: './lxbd_db_00/t_longxibendi_info_00_1.frm'
2012-01-04 13:31
281 查看
一.问题描述
1.今天qa反映个问题。
mysqldump导入数据报错。
2.初步判断:
1.)磁盘损坏、文件系统损坏。
2.)表损坏。
3.)主从数据库版本不一致。
4.)配置有问题。
3.登录数据库,发现,该表是innodb表。
那么,用reapir,check 等,检查和修复是无济于事的。
mysql> check table lxbd_db_00.t_longxibendi_info_00_1;
+----------------------------+-------+----------+-------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+----------------------------+-------+----------+-------------------------------------------------------------------+
| lxbd_db_00.t_longxibendi_info_00_1 | check | Error | Incorrect information in file: './lxbd_db_00/t_longxibendi_info_00_1.frm' |
| lxbd_db_00.t_longxibendi_info_00_1 | check | error | Corrupt |
+----------------------------+-------+----------+-------------------------------------------------------------------+
二.问题定位
后来让qa打开错误日志。
发现报以下错误
libexec/mysqld: Can't create/write to file '/tmp/ibx3NNtE' (Errcode: 28)
120104 13:01:10 InnoDB: Error: unable to create temporary file; errno: 28
这样基本原因知道了,
mysql> show variables like '%tmp%';
+-------------------+----------+
| Variable_name | Value |
+-------------------+----------+
| max_tmp_tables | 32 |
| slave_load_tmpdir | /tmp/ |
| tmp_table_size | 33554432 |
| tmpdir | /tmp/ |
+-------------------+----------+
三.问题解决
qa没有配置tmpdir,但是mysql默认使用/tmp作为 tmpdir的目录。
但是/tmp 挂载到 /root
$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 8.7G 7.2G 1.5G 83% /
大量mysqldump导入数据,导致tmp空间不够用。故而报错。
让qa重新配置tmp,这样启动mysql。问题解决。
四.总结
如果连innodb 的表 执行 check table 也报错,特别是标题中的错误。那么
注意查看tmpdir 的配置目录。
1.今天qa反映个问题。
mysqldump导入数据报错。
2.初步判断:
1.)磁盘损坏、文件系统损坏。
2.)表损坏。
3.)主从数据库版本不一致。
4.)配置有问题。
3.登录数据库,发现,该表是innodb表。
那么,用reapir,check 等,检查和修复是无济于事的。
mysql> check table lxbd_db_00.t_longxibendi_info_00_1;
+----------------------------+-------+----------+-------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+----------------------------+-------+----------+-------------------------------------------------------------------+
| lxbd_db_00.t_longxibendi_info_00_1 | check | Error | Incorrect information in file: './lxbd_db_00/t_longxibendi_info_00_1.frm' |
| lxbd_db_00.t_longxibendi_info_00_1 | check | error | Corrupt |
+----------------------------+-------+----------+-------------------------------------------------------------------+
二.问题定位
后来让qa打开错误日志。
发现报以下错误
libexec/mysqld: Can't create/write to file '/tmp/ibx3NNtE' (Errcode: 28)
120104 13:01:10 InnoDB: Error: unable to create temporary file; errno: 28
这样基本原因知道了,
mysql> show variables like '%tmp%';
+-------------------+----------+
| Variable_name | Value |
+-------------------+----------+
| max_tmp_tables | 32 |
| slave_load_tmpdir | /tmp/ |
| tmp_table_size | 33554432 |
| tmpdir | /tmp/ |
+-------------------+----------+
三.问题解决
qa没有配置tmpdir,但是mysql默认使用/tmp作为 tmpdir的目录。
但是/tmp 挂载到 /root
$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 8.7G 7.2G 1.5G 83% /
大量mysqldump导入数据,导致tmp空间不够用。故而报错。
让qa重新配置tmp,这样启动mysql。问题解决。
四.总结
如果连innodb 的表 执行 check table 也报错,特别是标题中的错误。那么
注意查看tmpdir 的配置目录。
相关文章推荐
- ERROR 1033 (HY000): Incorrect information in file: 'abc.frm' 问题解决
- ERROR 1033: Incorrect information in file: './qs_52_table/qs_member_table.frm' mysql数据库迁移
- MySQL修改my.ini后,出现错误:Incorrect information in file: './xx/xx.frm
- flush privileges;的时候error 1033 (hy000) incorrect information in file: './mysql/table_priv.frm'
- mysql报错1033 Incorrect information in file: ‘xxx.frm’问题的解决方法
- Incorrect information in file xxxx.frm - MySQL错误
- mysql无法启动——Incorrect information in file: './mysql/user.frm'
- MySQL.1033:,Incorrect,information,in,file:,’.frm’
- MySQL坏表?异常:Incorrect key file for table './xx_db/xx_table.MYI'; try to repair it
- n unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.Additional information: 未能加载文件或程序集“..
- MYSQL 的错误Incorrect information in file: '.\test\stuff.frm
- MySQL ERROR 1033 (HY000): Incorrect information in file. 处理一例
- File already exists: filesystem '/path/db', transaction svn常见错误
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'selectcommoninfo' defined in ServletCont
- 错误代码: 1582 Incorrect parameter count in the call to native function 'str_to_date'
- "The file you are trying to open, '[filename]', is in a different format" Excel Error
- locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory
- make: Warning: File `Makefile' has modification time 2.4e 08 s in the future
- 遇到Can\'t find file : \'./mc2db/job_list.frm\' <errno: 13>错误
- required file `config.h.in' not found