Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
그래서 위 메세지가 시킨대로 다시 아래와 같이 명령을 썼더니 결국 Fail 이고, 아래와 같은 메세지가 나타났다.
[admin@localhost lib]$ sudo systemctl status mariadb.service
● mariadb.service - MariaDB database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2022-03-04 15:28:08 KST; 10s ago Process: 4606 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=1/FAILURE)
Mar 04 15:28:08 localhost.localdomain mariadb-prepare-db-dir[4606]: Please check all of the above before submitting a bug report Mar 04 15:28:08 localhost.localdomain mariadb-prepare-db-dir[4606]: at http://mariadb.org/jira Mar 04 15:28:08 localhost.localdomain mariadb-prepare-db-dir[4606]: Initialization of MariaDB database failed. Mar 04 15:28:08 localhost.localdomain mariadb-prepare-db-dir[4606]: Perhaps @sysconfdir@/my.cnf is misconfigured or there is some problem with permissions of /var/lib/mysql. Mar 04 15:28:08 localhost.localdomain mariadb-prepare-db-dir[4606]: Initialization of MariaDB database was not finished successfully. Mar 04 15:28:08 localhost.localdomain mariadb-prepare-db-dir[4606]: Files created so far will be removed. Mar 04 15:28:08 localhost.localdomain systemd[1]: mariadb.service: control process exited, code=exited status=1 Mar 04 15:28:08 localhost.localdomain systemd[1]: Failed to start MariaDB database server. Mar 04 15:28:08 localhost.localdomain systemd[1]: Unit mariadb.service entered failed state. Mar 04 15:28:08 localhost.localdomain systemd[1]: mariadb.service failed.