gpt4 book ai didi

database - MariaDB 安装问题 'mariadb.service: Failed with result ' timeout'.'

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

我正在尝试重新安装 MariaDB,但我不知道安装失败的原因。我之前安装了 MySQL,想用 MariaDB 来解决版本问题,所以如果你们能帮忙,谢谢。
这是我在 shell 上执行的一些命令和结果。
真的很抱歉我的shell是法语的,希望你们能帮助我。
之间,我有一个 Ubuntu 20.04tls 操作系统。

> sudo apt autoremove --purge ~n^mysql-server

> sudo apt install mariadb-server

● mariadb.service - MariaDB 10.3.31 database serverLoaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)Active: failed (Result: timeout) since Mon 2021-11-01 20:38:21 CET; 2min 1s agoDocs: man:mysqld(8)https://mariadb.com/kb/en/library/systemd/Process: 979 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER > > $_WSREP_START_POSITION (code=exited, status=0/SUCCESS)Main PID: 979 (code=exited, status=0/SUCCESS)


nov. 01 20:38:19 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:19 0 [Note] Event Scheduler: Purging the queue. 0 events


nov. 01 20:38:19 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:19 0 [Note] InnoDB: FTS optimize thread exiting.


nov. 01 20:38:19 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:19 0 [Note] InnoDB: Starting shutdown...


nov. 01 20:38:19 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:19 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buff>


nov. 01 20:38:19 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:19 0 [Note] InnoDB: Buffer pool(s) dump completed at 211101 20:38:19


nov. 01 20:38:21 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:21 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"


nov. 01 20:38:21 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:21 0 [Note] InnoDB: Shutdown completed; log sequence number 1625461;>


nov. 01 20:38:21 zemmouri-Inspiron-15-3567 mysqld[979]: 2021-11-01 20:38:21 0 [Note] /usr/sbin/mysqld: Shutdown complete


nov. 01 20:38:21 zemmouri-Inspiron-15-3567 systemd[1]: mariadb.service: Failed with result 'timeout'.


nov. 01 20:38:21 zemmouri-Inspiron-15-3567 systemd[1]: Failed to start MariaDB 10.3.31 database server.


它在安装菜单上失败:
在安装菜单上等待 2 或 3 分钟,然后显示: Job for mariadb.service failed because a timeout was exceeded. See "systemctl status mariadb.service" and "journalctl -xe" for details. Paramètre de mariadb-server (1:10.3.31-00ubuntu0.20.04.1)... Traitement des actions différées (<< triggers >>) pour systemd (245.4-4ubuntu3.13)... Traitement des actions différées (<< triggers >>) pour man-db (2.9.1-1) Traitement des actions différées (<< triggers >>) pour libc-bin (2.31-0ubuntu9.2)...

最佳答案

  • 卸载 apparmor 并删除目录/etc/apparmor/和/etc/apparmor.d/
  • 重启
  • 安装 Apparmor
  • 关于database - MariaDB 安装问题 'mariadb.service: Failed with result ' timeout'.',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69771559/

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