mysqld 由于 InnoDB 启动失败

mysqld 由于 InnoDB 启动失败

我确实在 MX Linux 上安装了 MariaDB,我的系统信息如下:

System:    Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-9-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21_x64 Wildflower October 20  2021 
           base: Debian GNU/Linux 11 (bullseye)

当我使用以下命令启动服务器时:

sudo mysqld

我收到有关 InnoDB 缺少 FILE_CHECKPOINT 的以下错误:

$ sudo mysqld
[sudo] password for ****: 
2022-02-22  0:00:18 0 [Note] mysqld (mysqld 10.5.12-MariaDB-0+deb11u1) starting as process 14306 ...
2022-02-22  0:00:18 0 [Note] RocksDB: 2 column families found
2022-02-22  0:00:18 0 [Note] RocksDB: Column Families at start:
2022-02-22  0:00:18 0 [Note]   cf=default
2022-02-22  0:00:18 0 [Note]     write_buffer_size=67108864
2022-02-22  0:00:18 0 [Note]     target_file_size_base=67108864
2022-02-22  0:00:18 0 [Note]   cf=__system__
2022-02-22  0:00:18 0 [Note]     write_buffer_size=67108864
2022-02-22  0:00:18 0 [Note]     target_file_size_base=67108864
2022-02-22  0:00:18 0 [Note] RocksDB: Table_store: loaded DDL data for 0 tables
2022-02-22  0:00:18 0 [Note] RocksDB: global statistics using get_sched_indexer_t indexer
2022-02-22  0:00:18 0 [Note] MyRocks storage engine plugin has been successfully initialized.
2022-02-22  0:00:18 0 [Note] InnoDB: Uses event mutexes
2022-02-22  0:00:18 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-02-22  0:00:18 0 [Note] InnoDB: Number of pools: 1
2022-02-22  0:00:18 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2022-02-22  0:00:18 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2022-02-22  0:00:18 0 [Note] InnoDB: Using Linux native AIO
2022-02-22  0:00:18 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2022-02-22  0:00:18 0 [Note] InnoDB: Completed initialization of buffer pool
2022-02-22  0:00:18 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=45118,45118
**2022-02-22  0:00:18 0 [ERROR] InnoDB: Missing FILE_CHECKPOINT at 45118 between the checkpoint 45118 and the end 108246.**
2022-02-22  0:00:18 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2022-02-22  0:00:18 0 [Note] InnoDB: Starting shutdown...
2022-02-22  0:00:19 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-02-22  0:00:19 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2022-02-22  0:00:19 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-02-22  0:00:19 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2022-02-22  0:00:19 0 [ERROR] Aborting

这超出了我的能力范围,有人可以给我一些提示吗?

答案1

InnoDB 确实无法从最后一个名为 ib_logfile0 的日志文件中恢复

因为我不需要保存任何东西,所以我只是删除了

/var/lib/mysql/ib_logfile0

之后我就能正常启动服务器了。

附言:我是新来的,我不知道是否应该“回答我的问题”还是仅在“评论”中提及这一点。

相关内容