今天我想重启 mariaDB,因为我无法再连接到数据库。当我尝试重启它时,出现了以下错误:
● mariadb.service - MariaDB 10.7.3 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: resources) since Mon 2022-03-28 21:23:20 CEST; 18min ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Tasks: 102 (limit: 36046)
Memory: 613.7M
CPU: 4h 54min 2.270s
CGroup: /system.slice/mariadb.service
└─127990 /usr/sbin/mariadbd
Mar 28 21:23:20 vmd89408.contaboserver.net systemd[1]: mariadb.service: Will not start SendSIGKILL=no service of type KillMode=control-group or mixed while processes exist
Mar 28 21:23:20 vmd89408.contaboserver.net systemd[1]: mariadb.service: Failed to run 'start-pre' task: Device or resource busy
Mar 28 21:23:20 vmd89408.contaboserver.net systemd[1]: mariadb.service: Failed with result 'resources'.
Mar 28 21:23:20 vmd89408.contaboserver.net systemd[1]: Failed to start MariaDB 10.7.3 database server.
Mar 28 21:41:36 vmd89408.contaboserver.net systemd[1]: mariadb.service: Found left-over process 127990 (mariadbd) in control group while starting unit. Ignoring.
Mar 28 21:41:36 vmd89408.contaboserver.net systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Mar 28 21:41:36 vmd89408.contaboserver.net systemd[1]: mariadb.service: Will not start SendSIGKILL=no service of type KillMode=control-group or mixed while processes exist
Mar 28 21:41:36 vmd89408.contaboserver.net systemd[1]: mariadb.service: Failed to run 'start-pre' task: Device or resource busy
Mar 28 21:41:36 vmd89408.contaboserver.net systemd[1]: mariadb.service: Failed with result 'resources'.
Mar 28 21:41:36 vmd89408.contaboserver.net systemd[1]: Failed to start MariaDB 10.7.3 database server.
据我所知,问题在于它没有正确关闭。我已经尝试通过运行来终止该进程,kill 127990
但这也没有解决问题。