0

我最近从 32 升级到 Fedora 34。最初,我有 mariadb 服务器运行并为多个数据库和用户提供服务,一切正常,直到升级之后。当我第一次启动服务器(systemctl start mariadb)如果失败,并显示/var/lib/mysql/mysql.sock不存在的错误(实际上是整个director“./mysql/mysql.sock)。我创建它们并尝试,但我仍然得到类似的响应。我查看了日志文件:/var/log/mariadb.log,发现了这个:

2021-10-25  3:35:51 0 [Warning] Plugin 'OQGRAPH' is of maturity level gamma while the server is stable
2021-10-25  3:35:51 0 [Note] RocksDB: 2 column families found
2021-10-25  3:35:51 0 [Note] RocksDB: Column Families at start:
2021-10-25  3:35:51 0 [Note]   cf=default
2021-10-25  3:35:51 0 [Note]     write_buffer_size=67108864
2021-10-25  3:35:51 0 [Note]     target_file_size_base=67108864
2021-10-25  3:35:51 0 [Note]   cf=__system__
2021-10-25  3:35:51 0 [Note]     write_buffer_size=67108864
2021-10-25  3:35:51 0 [Note]     target_file_size_base=67108864
2021-10-25  3:35:52 0 [Note] RocksDB: Table_store: loaded DDL data for 0 tables
2021-10-25  3:35:52 0 [Note] RocksDB: global statistics using get_sched_indexer_t indexer
2021-10-25  3:35:52 0 [Note] MyRocks storage engine plugin has been successfully initialized.
2021-10-25  3:35:52 0 [Note] InnoDB: Uses event mutexes
2021-10-25  3:35:52 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-10-25  3:35:52 0 [Note] InnoDB: Number of pools: 1
2021-10-25  3:35:52 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2021-10-25  3:35:52 0 [Note] mariadbd: O_TMPFILE is not supported on /var/tmp (disabling future attempts)
2021-10-25  3:35:52 0 [Note] InnoDB: Using Linux native AIO
2021-10-25  3:35:52 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2021-10-25  3:35:52 0 [Note] InnoDB: Completed initialization of buffer pool
2021-10-25  3:35:52 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=45130,45130
2021-10-25  3:35:52 0 [ERROR] InnoDB: Missing FILE_CHECKPOINT at 45130 between the checkpoint 45130 and the end 45154.
2021-10-25  3:35:52 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2021-10-25  3:35:52 0 [Note] InnoDB: Starting shutdown...
2021-10-25  3:35:53 0 [ERROR] Plugin 'InnoDB' init function returned error.
2021-10-25  3:35:53 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2021-10-25  3:35:53 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-10-25  3:35:53 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2021-10-25  3:35:53 0 [ERROR] Aborting

我确实保存了数据库目录。

我创建了一个新目录 /red/mysql - 这是我配置的数据目录。我启动了 mariadb 服务,该服务启动正常,但没有数据,我无法弄清楚如何从我以前的 datadir 导入文件。

我在之前的升级中设法做到了这一点,但我不记得是如何做到的。那么执行此操作的标准方法是什么?或者有没有办法从保存的数据库目录中提取数据库,并将它们导入新的数据库?

非常感谢任何帮助,

4

0 回答 0