gpt4 book ai didi

mysql - Ubuntu 22.04。 MariaDB "Starting MariaDB database server mariadbd [fail]"

转载 作者:行者123 更新时间:2023-12-04 19:04:50 29 4
gpt4 key购买 nike

这是我使用的:

lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

uname -r
5.10.102.1-microsoft-standard-WSL2
Operating system
Windows 11 Pro
* version
21H2
* build
22000.708
* experience
Windows Feature Experience Pack 1000.22000.708.0.
以下是输出:
sudo mariadb --version
* mariadb Ver 15.1 Distrib 10.6.7-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
sudo service mariadb restart
* Stopping MariaDB database server mariadbd [ OK ]
* Starting MariaDB database server [fail]
sudo service mariadb status
* MariaDB is stopped.
注意 error.log 中的日期,这是一些较旧的错误。与此无关。我查了 error.log在重新安装时,它是空的,仍然无法启动。
nano /var/log/mysql/error.log
* 2022-03-29 15:43:59 0 [Warning] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
* 2022-03-29 15:43:59 0 [Warning] InnoDB: Linux Native AIO disabled.
sudo mysqld --verbose --user root
* 2022-06-02 13:27:16 0 [Note] mysqld (server 10.6.7-MariaDB-1:10.6.7+maria~focal) starting as process 1445 ...
* 2022-06-02 13:27:16 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
* 2022-06-02 13:27:16 0 [Note] InnoDB: Number of pools: 1
* 2022-06-02 13:27:16 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
* 2022-06-02 13:27:16 0 [Note] InnoDB: Using Linux native AIO
* 2022-06-02 13:27:16 0 [Note] InnoDB: Initializing buffer pool, total size = 4294967296, chunk size = 134217728
* 2022-06-02 13:27:16 0 [Note] InnoDB: Completed initialization of buffer pool
* 2022-06-02 13:27:16 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=10162222816,10254949185
* 2022-06-02 13:27:16 0 [ERROR] InnoDB: Missing FILE_CREATE, FILE_DELETE or FILE_MODIFY before FILE_CHECKPOINT for tablespace 724
* 2022-06-02 13:27:16 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
* 2022-06-02 13:27:16 0 [Note] InnoDB: Starting shutdown...
* 2022-06-02 13:27:17 0 [ERROR] Plugin 'InnoDB' init function returned error.
* 2022-06-02 13:27:17 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
* 2022-06-02 13:27:17 0 [Note] Plugin 'FEEDBACK' is disabled.
* 2022-06-02 13:27:17 0 [ERROR] Unknown/unsupported storage engine: InnoDB
* 2022-06-02 13:27:17 0 [ERROR] Aborting
该设置已经运行了几个月,没有出现任何问题。我重新启动了我的电脑,安装了一个 Windows 更新*,现在我无法再启动 mariadb。
这是什么问题,为什么会突然发生?

* 如果相关,这是 Windows 更新: Update for Windows Security platform - KB5007651 (Version 1.0.2109.27002) Update notes

更新
刚刚对我系统上的所有 Ubuntu 和 WSL 进行了完全清除/卸载。
然后我按照此处的指导进行了逐步安装: https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#1-overview
然后我安装了 MariaDB sudo apt install mariadb-server .
当我做 sudo service mariadb start我再次收到 [FAIL],所以它也发生在全新安装上。这一次,Ubuntu 上的任何地方都没有日志。
对于那些要求“完整崩溃日志”的人—— error.log 中的两行我所拥有的就是一切。
对于那些询问的人,这是我的 my.cnf :
# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read.
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/

#
# This group is read both by the client and the server
# use it for options that affect everything
#
[client-server]
# Port or socket location where to connect
# port = 3306
socket = /run/mysqld/mysqld.sock

# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

更新#2
我已经发布了一个有效的答案。简而言之,这是 WSL 问题。

最佳答案

这些消息表明 libaio接口(interface)(相对于较新的 io_uring )正在使用。在那个界面中,至少在普通的 Linux 内核上,io_setup()系统调用可能会失败,导致回退到模拟的异步 I/O (innodb_use_native_aio=0)。
恢复失败可能由错误 MDEV-28731 解释。由 MDEV-12353 介绍在 MariaDB 服务器 10.5 中。

关于mysql - Ubuntu 22.04。 MariaDB "Starting MariaDB database server mariadbd [fail]",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72474571/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com