温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-05-18 15:59:18 阅读:332 作者:三月 栏目:MySQL数据库
亿速云mysql数据库,读写分离,安全稳定,弹性扩容,低至0.3元/天!! 点击查看>>

本文主要给大家简单讲讲history_uint损坏使mysql重启频繁最后导致zabbix_server关闭该怎么办,相关专业术语大家可以上网查查或者找一些相关书籍补充一下,这里就不涉猎了,我们就直奔主题吧,希望history_uint损坏使mysql重启频繁最后导致zabbix_server关闭该怎么办这篇文章可以给大家带来一些实际帮助。

问题:13:15:47  InnoDB: Page checksum 2390903969, prior-to-4.0.14-form checksum 2524550738

InnoDB: stored checksum 2319722401, prior-to-4.0.14-form stored checksum 192332111

InnoDB: Page lsn 0 1902263731, low 4 bytes of lsn at page end 1900395394

InnoDB: Page number (if stored to page already) 16222,

InnoDB: space id (if created with >= MySQL-4.1.1 and stored already) 0

InnoDB: Page may be an index page where index id is 0 462

InnoDB: (index "GEN_CLUST_INDEX" of table "zabbix"."history_uint")

InnoDB: Database page corruption on disk or a failed

InnoDB: file read of page 16222.

InnoDB: You may have to recover from a backup.

InnoDB: It is also possible that your operating

InnoDB: system has corrupted its own file cache

InnoDB: and rebooting your computer removes the

InnoDB: error.

InnoDB: If the corrupt page is an index page

InnoDB: you can also try to fix the corruption

解决方法:

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

[root@zabbix /]# /etc/init.d/mysqld restart

新建同结构表,引擎为myisam

mysql> use zabbix

mysql> create table history_uint_new like history_uint; 

mysql> alter table history_uint_new type=myisam;

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

mysql> Insert into history_uint_new select * from history_uint;

mysql> exit

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

[root@strongzabbix /]# /etc/init.d/mysqld restart

修改新表引擎为innodb

mysql> use zabbix

Alter table history_uint_new type=innodb; 

删除原表

mysql> Drop table history_uint; 

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

mysql> rename table history_uint_new to history_uint;  

mysql> flush privileges; 

mysql> exit

[root@strongzabbix /]# /etc/init.d/mysqld restart

history_uint损坏使mysql重启频繁最后导致zabbix_server关闭该怎么办就先给大家讲到这里,对于其它相关问题大家想要了解的可以持续关注我们的行业资讯。我们的板块内容每天都会捕捉一些行业新闻及专业知识分享给大家的。

亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI

开发者交流群×