MySQL Server 5.6故障处理2例

MySQL Server 5.6故障处理2例


2014年11月4日,117.79.133.132服务器上mysql-server从5.1升级到5.6后出现故障

###############################################################################

  • 事故信息

    MySQL无法启动;

    MySQL日志中有一段:

    2014-11-04 10:14:02 18736 [ERROR] /usr/sbin/mysqld: unknown variable 'default-character-set=utf8'

    2014-11-04 10:14:02 18736 [ERROR] Aborting

  • 处理办法

    修正my.cnf中的default-character-set=utf8为character_set_server=utf8;

    原因新版本有修改

###############################################################################

  • 事故信息:

    启动MySQL有大量错误信息;

2014-11-04 10:30:05 7f90329fb700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

2014-11-04 10:30:05 7f90329fb700 InnoDB: Error: Fetch of persistent statistics requested for table "zabbix"."group_prototype" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.

2014-11-04 10:30:05 7f90329fb700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

2014-11-04 10:30:05 7f90329fb700 InnoDB: Error: Fetch of persistent statistics requested for table "zabbix"."group_discovery" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.

2014-11-04 10:30:05 7f90329fb700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

2014-11-04 10:30:05 7f90329fb700 InnoDB: Error: Fetch of persistent statistics requested for table "zabbix"."interface_discovery" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.

2014-11-04 10:30:11 7f90297fb700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

2014-11-04 10:30:11 7f90297fb700 InnoDB: Recalculation of persistent statistics requested for table "zabbix"."escalations" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.

2014-11-04 10:32:06 7f90297fb700 InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

2014-11-04 10:32:06 7f90297fb700 InnoDB: Recalculation of persistent statistics requested for table "zabbix"."escalations" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.


处理办法:


重新构建mysql库结构;


由于是yum安装,rpm查询 sql语句文件路径

[root@oms~]#rpm ql mysql-community-server-5.6.21-2.el6.x86_64|grep mysql_system_tables_data.sql

/usr/share/mysql/mysql_system_tables_data.sql

[root@oms~]# rpm -ql  mysql-community-server-5.6.21-2.el6.x86_64 |grep mysql_system_tables.sql

/usr/share/mysql/mysql_system_tables.sql


依次在mysql库中导入两个sql语句文件即可!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值