[root@104 etc]# systemctl restart mysqld [root@104 etc]# systemctl status mysqld ● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2020-06-08 14:19:44 CST; 11s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 30768 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Main PID: 30792 (mysqld) Status: "Server is operational" CGroup: /system.slice/mysqld.service └─30792 /usr/sbin/mysqld
Jun 08 14:19:43 104.225.233.221.16clouds.com systemd[1]: Stopped MySQL Server. Jun 08 14:19:43 104.225.233.221.16clouds.com systemd[1]: Starting MySQL Server... Jun 08 14:19:44 104.225.233.221.16clouds.com systemd[1]: Started MySQL Server. [root@104 etc]# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 8.0.20 MySQL Community Server - GPL
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
[root@db01 ~]# journalctl -xe -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit mariadb.service has begun starting up. Aug 10 10:04:21 db01 systemd[2509]: Failed at step USER spawning /usr/libexec/mariadb-prepare-db-dir: No such pro -- Subject: Process /usr/libexec/mariadb-prepare-db-dir could not be executed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The process /usr/libexec/mariadb-prepare-db-dir could not be executed and failed. -- -- The error number returned by this process is 3. Aug 10 10:04:21 db01 systemd[1]: mariadb.service: control process exited, code=exited status=217 Aug 10 10:04:21 db01 systemd[1]: Failed to start MariaDB 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. Aug 10 10:04:21 db01 systemd[1]: Unit mariadb.service entered failed state. Aug 10 10:04:21 db01 systemd[1]: mariadb.service failed. Aug 10 10:04:21 db01 polkitd[700]: Unregistered Authentication Agent for unix-process:2503:157501 (system bus nam