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语句文件路径

[[email protected]~]#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

[[email protected]~]# 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语句文件即可!

时间: 2024-12-10 03:39:18

MySQL Server 5.6故障处理2例的相关文章

MySQL故障处理一例_Another MySQL daemon already running with the same unix socket

MySQL故障处理一例:"Another MySQL daemon already running with the same unix socket". [[email protected]121 sbin]# service mysqld status mysqld 已停 [[email protected]-121 sbin]# service mysqld start Another MySQL daemon already running with the same unix

MySQL启动故障处理一例(errno 13)

之前在系统上装了个MySQL用于测试,今天发现启动mysqld_safe进程的时候报错,如下所示: [[email protected] local]# mysqld_safe & [1] 2631 [[email protected] local]# Starting mysqld daemon with databases from /data/mysql/mysql_3306/data STOPPING server from pid file /data/mysql/mysql_3306

ubuntu 14.04 安装mysql server初级教程

序,mysql数据库是开源的,被大多数企业所使用 目录 一.apt-get install 软件安装原理剖析二.安装mysql server三.配置和管理msyql 一.apt-get install 软件安装原理剖析 /etc/apt/sources.list 这个文件很重要,里面放了一些软件资源的库地址,我们每次利用apt-get install命令安装软件时,都是在读取这个文件. Ubuntu 软件仓库被分为四个部分:main(主要的), restricted(受限的), universe

MySQL server version for the right syntax to use near 'type=InnoDB' at line 1

转载请注明出处:http://blog.csdn.net/bettarwang/article/details/40180271 在执行一个Hibernate的演示样例时,配置了<property name="hibernate.hbm2ddl.auto">update</property>属性,可是自己主动建表却一直不成功,出错信息为: ERROR: HHH000388: Unsuccessful: create table info_table (id in

SQLSTATE[HY000] [2003] Can&#39;t connect to MySQL server on &#39;XXX&#39; (13)

SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'XXX' (13) 我可以真见识了 SELinux 的利害了, 这个问题让我找了好长时间的原因:结果是 SELinux 不让 httpd 访问外网,昨天安装 Chrome 浏览器,结果不让 在根帐号下运行 .....SQLSTATE[HY000] [2003] Can't connect to MySQL server on 'XXX' (13)解决方法:Selinux 的设置 Ca

客户端不能连接MySQL - 2003-Can&#39;t connect to MySQL server on &#39;192.168.43.180&#39;(10060 &quot;Unknown error&quot;)

客户端不能连接MySQL 场景: 数据库(此处以MySQL为例)安装在虚拟机里面,在宿主机上进行连接数据库的时候始终不能连接,但在虚拟机中使用正常. 针对上面的场景: 1. 在虚拟机里面可以正常使用MySQL 2. 在宿主机上进行连接的时候,始终不能连接 解决方案: 第一步:检查账号是否支持远程链接? 相关操作指令: # mysql -uroot -p  使用root用户链接mysql # show databases             查看已有的数据框(主要是为了找:mysql 这个数据

python测试开发django-58.MySQL server has gone away错误的解决办法

前言 使用django执行sql相关操作的时候,出现一个"MySQL server has gone away"错误,后来查了下是sql执行过程中,导入的文件较大时候,会出现这个异常. 检查了下sql语句,确实有插入图片,图片较大导致出现MySQL server has gone away. 该问题是max_allowed_packet配置的默认值设置太小,只需要相应调大该项的值之后再次导入便能成功. 该项的作用是限制mysql服务端接收到的包的大小,因此如果导入的文件过大则可能会超过

mysql链接错误:2003 can&#39;t connect to mysql server on 10038

出现这个错误原因是端口号不是3306. 打开D:\Program Files\MySQL\MySQL Server 5.5 \my.ini文件,当然还有其他的.ini的文件: [client] port=3306 [mysql] default-character-set=utf8 # SERVER SECTION# ----------------------------------------------------------------------## The following opt

Chapter 5 MySQL Server Administration_1

Chapter 5 MySQL Server Administration Table of Contents 5.1 The MySQL Server 5.1.1 Configuring the Server 5.1.2 Server Configuration Defaults 5.1.3 Server Option and Variable Reference 5.1.4 Server Command Options 5.1.5 Server System Variables 5.1.6