[root@Pujitha-PC ~]# systemctl status mariadb ● mariadb.service - 10.4 database server Loaded: loaded (/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2020-01-30 11:57:29 +0530; 4min 5s ago Process: 3595 ExecStartPre=/usr/sbin/mysql-check-socket (code=exited, status=0/SUCCESS) Process: 3615 ExecStartPre=/usr/sbin/mysql-prepare-db-dir mariadb.service (code=exited, status=1/FAILURE) Process: 3672 ExecStopPost=/usr/sbin/mysql-wait-stop (code=exited, status=0/SUCCESS) Jan 30 11:57:29 Pujitha-PC systemd[1]: Starting 10.4 database server... Jan 30 11:57:29 Pujitha-PC mysql-prepare-db-dir[3615]: Initializing database Jan 30 11:57:29 Pujitha-PC mysql-prepare-db-dir[3615]: chown: changing ownership of '/usr/lib64/mysql/plugin/auth_pam_tool_dir': Operation not permitted Jan 30 11:57:29 Pujitha-PC mysql-prepare-db-dir[3615]: Cannot change ownership of the '/usr/lib64/mysql/plugin/auth_pam_tool_dir' directory Jan 30 11:57:29 Pujitha-PC mysql-prepare-db-dir[3615]: to the 'mysql' user. Check that you have the necessary permissions and try again. Jan 30 11:57:29 Pujitha-PC mysql-prepare-db-dir[3615]: Initialization of database failed. Jan 30 11:57:29 Pujitha-PC mysql-prepare-db-dir[3615]: Perhaps /my.cnf is misconfigured. Jan 30 11:57:29 Pujitha-PC systemd[1]: mariadb.service: Control process exited, code=exited, status=1/FAILURE Jan 30 11:57:29 Pujitha-PC systemd[1]: mariadb.service: Failed with result 'exit-code'. Jan 30 11:57:29 Pujitha-PC systemd[1]: Failed to start 10.4 database server. [root@Pujitha-PC ~]#