gpt4 book ai didi

mysql - 重启服务器后无法启动 MariaDB 10.3 数据库服务器

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

重新启动服务器后 mariadb 无法启动并且无法获取数据库
所以我输入了 service mariadb restart; journalctl -xe 查看详细错误:

[root@server ~]# service mariadb restart; journalctl -xe
Redirecting to /bin/systemctl restart mariadb.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-1001.slice has finished shutting down.
Sep 10 01:13:27 server.itop.one polkitd[8162]: Registered Authentication Agent for unix-process:18782:236011 (system bus name :1.307 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop
Sep 10 01:13:27 server.itop.one systemd[1]: Starting MariaDB 10.3.31 database server...
-- Subject: Unit mariadb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mariadb.service has begun starting up.
Sep 10 01:13:28 server.itop.one mysqld[18932]: 2021-09-10 1:13:28 0 [Note] /usr/sbin/mysqld (mysqld 10.3.31-MariaDB-log) starting as process 18932 ...
Sep 10 01:13:28 server.itop.one systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE
Sep 10 01:13:28 server.itop.one systemd[1]: Failed to start MariaDB 10.3.31 database server.
-- Subject: Unit mariadb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mariadb.service has failed.
--
-- The result is failed.
Sep 10 01:13:28 server.itop.one systemd[1]: Unit mariadb.service entered failed state.
Sep 10 01:13:28 server.itop.one systemd[1]: mariadb.service failed.
Sep 10 01:13:28 server.itop.one polkitd[8162]: Unregistered Authentication Agent for unix-process:18782:236011 (system bus name :1.307, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US
lines 2203-2225/2225 (END)

最佳答案

我只是面临同样的情况。
到目前为止,我的结论是“systemd”类型不会将其作为后台进程启动,并且由于 mysqld intself 的行为类似于后台守护进程(就像它实际上应该那样),systemd 在设置后 900 秒后将其杀死。
现在我不能说为什么会这样,我也不知道如何改变它,但我的解决方法是自己从 shell 中启动 mysqld 作为守护进程,这样它就不会被 systemd 杀死。超时。

关于mysql - 重启服务器后无法启动 MariaDB 10.3 数据库服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69125642/

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