mysql日志 事务问题_mysql因为事务日志问题无法启动

今天一个客户反馈Mysql数据库无法启动,具体如下:

[root@testdb var]#service mysql start

Starting MySQL... ERROR! The server quit without updating PID file (/usr/local/mysql/mysql.pid).

初看,好像是权限问题,但仔细检查权限,没有发现问题,所以进入错误日志看

[root@testdb var]# more testdb.err

2020-06-12T08:30:25.273479Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled

2020-06-12T08:30:25.273850Z 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.26-log) starting as process 10090 ...

2020-06-12T08:30:25.286777Z 0 [Note] InnoDB: PUNCH HOLE support available

2020-06-12T08:30:25.286827Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2020-06-12T08:30:25.286838Z 0 [Note] InnoDB: Uses event mutexes

2020-06-12T08:30:25.286845Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier

2020-06-12T08:30:25.286852Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11

2020-06-12T08:30:25.286856Z 0 [Note] InnoDB: Using Linux native AIO

2020-06-12T08:30:25.288765Z 0 [Note] InnoDB: Number of pools: 1

2020-06-12T08:30:25.288939Z 0 [Note] InnoDB: Using CPU crc32 instructions

2020-06-12T08:30:25.291804Z 0 [Note] InnoDB: Initializing buffer pool, total size = 4G, instances = 8, chunk size = 128M

2020-06-12T08:30:25.552835Z 0 [Note] InnoDB: Completed initialization of buffer pool

2020-06-12T08:30:25.589770Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of se

tpriority().

2020-06-12T08:30:25.603855Z 0 [Note] InnoDB: Highest supported file format is Barracuda.

2020-06-12T08:30:25.627920Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 3970243421 and the end 3970243072.

2020-06-12T08:30:25.627962Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error

2020-06-12T08:30:26.229118Z 0 [ERROR] Plugin 'InnoDB' init function returned error.

2020-06-12T08:30:26.229160Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

2020-06-12T08:30:26.229168Z 0 [ERROR] Failed to initialize builtin plugins.

2020-06-12T08:30:26.229172Z 0 [ERROR] Aborting

查看日志,发现如下:

InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 3970243421 and the end 3970243072.

事务日志有断档,估计也找不出来了,基于此,只能把原来的事务日志ib_logfile0和ib_logfile1重命名或者删除掉,然后再重新启动

[root@testdb var]#service mysql start

Starting MySQL...SUCCESS!

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值