history_uint损坏使mysql重启频繁最后导致zabbix_server关闭该怎么办

  

问题:13:15:47,InnoDB:页面校验和2390903969,prior-to-4.0.14-form校验和2524550738

InnoDB:存储校验和2319722401,prior-to-4.0.14-form存储校验和192332111

InnoDB:页面lsn 0 1902263731,低4字节的lsn结束1900395394页

InnoDB:页码(如果存储页面已经)16222,

InnoDB:空间id(如果创建祝辞=MySQL-4.1.1已经和存储)0

InnoDB:页面可能是一个索引页索引id 0 462

InnoDB:(指数“GEN_CLUST_INDEX"干净自己的表“zabbix" history_uint")

InnoDB:数据库页面腐败在磁盘或失败

InnoDB:读16222页的文件。

InnoDB:你可能需要从备份中恢复过来。

InnoDB:也有可能您的操作

InnoDB:系统已经损坏自己的文件缓存

InnoDB:和重新启动你的电脑删除

InnoDB:错误。

InnoDB:如果腐败的页面是一个索引页

InnoDB:你也可以尝试修复腐败

解决方法:

中在my . cnf中所做添加innodb_force_recovery=1,并重启mysql

#/etc/init. root@zabbix/d/mysqld重启

新建同结构表,引擎为myisam

mysql>使用zabbix

mysql>创建表history_uint_new像history_uint;,

mysql>alter table history_uint_new类型=myisam;

将原表数据导入到新建的表中,

mysql>插入history_uint_new select * from history_uint;

mysql>退出

中在my . cnf中所做注释掉innodb_force_recovery=1,并重启mysql

#/etc/init. root@strongzabbix/d/mysqld重启

修改新表引擎为innodb

mysql>zabbix

使用Alter table history_uint_new类型=innodb;,

删除原表

mysql>删除表history_uint;,

将新表名称改为原表并刷新权限,重启mysql

mysql>重命名表history_uint_new history_uint;,

mysql>冲洗特权;,

mysql>退出

#/etc/init. root@strongzabbix/d/mysqld重启

  

history_uint损坏使mysql重启频繁最后导致zabbix_server关闭该怎么办