mysql 5.6.35启动失败_mysql 5.6.34 突然宕机,启动不了,提示[ERROR] InnoDB: Space id in fsp header...

一、问题描述

一台线上的从服务器,半夜收到报警短信提示异常,连接到该服务器,发现mysqld进程不在了,ps 查看,也没有查到。于是重启,但是重启失败,提示without pid file 于是查看errorlog,内容如下:

2017-09-22 03:37:42 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled

2017-09-22 03:37:42 0 [Note] /opt/app/mysql5/bin/mysqld (mysqld 5.6.34-log) starting as process 166408 ...

2017-09-22 03:37:42 166408 [Note] Plugin 'FEDERATED' is disabled.

2017-09-22 03:37:42 7f5b77946720 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the

option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.

2017-09-22 03:37:42 166408 [Note] InnoDB: Using atomics to ref count buffer pool pages

2017-09-22 03:37:42 166408 [Note] InnoDB: The InnoDB memory heap is disabled

2017-09-22 03:37:42 166408 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2017-09-22 03:37:42 166408 [Note] InnoDB: Memory barrier is not used

2017-09-22 03:37:42 166408 [Note] InnoDB: Compressed tables use zlib 1.2.3

2017-09-22 03:37:42 166408 [Note] InnoDB: Using CPU crc32 instructions

2017-09-22 03:37:42 166408 [Note] InnoDB: Initializing buffer pool, size = 4.0G

2017-09-22 03:37:43 166408 [Note] InnoDB: Completed initialization of buffer pool

2017-09-22 03:37:43 166408 [Note] InnoDB: Highest supported file format is Barracuda.

2017-09-22 03:37:43 166408 [Note] InnoDB: Log scan progressed past the checkpoint lsn 4014227018962

2017-09-22 03:37:43 166408 [Note] InnoDB: Database was not shutdown normally!

2017-09-22 03:37:43 166408 [Note] InnoDB: Starting crash recovery.

2017-09-22 03:37:43 166408 [Note] InnoDB: Reading tablespace information from the .ibd files...

2017-09-22 03:37:43 166408 [ERROR] InnoDB: Space id in fsp header 1416128883,but in the page header 824195850

19:37:43 UTC - mysqld got signal 11 ;

This could be because you hit a bug. It is also possible that this binary

or one of the libraries it was linked against is corrupt, improperly built,

or misconfigured. This error can also be caused by malfunctioning hardware.

We will try our best to scrape up some info that will hopefully help

diagnose the problem, but since we have already crashed,

something is definitely wrong and this may fail.

key_buffer_size=536870912

read_buffer_size=16777216

max_used_connections=0

max_threads=1024

thread_count=0

connection_count=0

It is possible that mysqld could use up to

key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 84423448 K  bytes of memory

Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0

Attempting backtrace. You can use the following information to find out

where mysqld died. If you see no messages after this, something went

terribly wrong...

stack_bottom = 0 thread_stack 0x40000

/opt/app/mysql5/bin/mysqld(my_print_stacktrace+0x35)[0x8eebe5]

/opt/app/mysql5/bin/mysqld(handle_fatal_signal+0x41b)[0x6556ab]

/lib64/libpthread.so.0[0x3ff300f7e0]

/opt/app/mysql5/bin/mysqld[0xb3366b]

/opt/app/mysql5/bin/mysqld[0x9a240d]

/opt/app/mysql5/bin/mysqld[0xa49e6b]

/opt/app/mysql5/bin/mysqld[0xa89e06]

/opt/app/mysql5/bin/mysqld[0xa8c0ab]

/opt/app/mysql5/bin/mysqld[0xa908c7]

/opt/app/mysql5/bin/mysqld[0xa95502]

/opt/app/mysql5/bin/mysqld[0x9844ec]

/opt/app/mysql5/bin/mysqld[0x989bab]

/opt/app/mysql5/bin/mysqld[0x9fe679]

/opt/app/mysql5/bin/mysqld[0x94acd7]

/opt/app/mysql5/bin/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x48)[0x590798]

/opt/app/mysql5/bin/mysqld[0x6e8716]

/opt/app/mysql5/bin/mysqld(_Z11plugin_initPiPPci+0xb3e)[0x6ebf2e]

/opt/app/mysql5/bin/mysqld[0x583b85]

/opt/app/mysql5/bin/mysqld(_Z11mysqld_mainiPPc+0x4d8)[0x588c28]

/lib64/libc.so.6(__libc_start_main+0xfd)[0x3ff2c1ed1d]

/opt/app/mysql5/bin/mysqld[0x57a8c9]

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains

information that should help you find out what is causing the crash.

170922 03:37:43 mysqld_safe mysqld from pid file /opt/app/mysql5/var/mysql.pid ended

170922 04:08:37 mysqld_safe Starting mysqld daemon with databases from /opt/app/mysql5/var

2017-09-22 04:08:37 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for m

ore details).

同样的,使用/opt/app/mysql5/bin/mysqld_safe也是启动不了。网上找了很多资料,有说是磁盘满了

有说是内存满了,但是此服务器的磁盘和内存都足够。有的说是删除数据目录下面的ibdata和ib_logfile

文件,然后重新启动就ok了,然而试了以后依然启动不了。

参考了几个链接:

分析连接:http://qkxue.net/info/155788/MySQL

感觉分析的挺有道理的,不过没有解决方法!

如果有哪位朋友遇到过并且成功解决了,请指教,不胜感激!

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值