Search code examples
centosmariadb

MariaDB service fails immediately after installation - CentOS7


MariaDB service could not start after installation, fresh CentOS7 install with no Apache or PHP yet. Though it has Webmin panel installed but nothing other than that.

The error message that I am getting is as following:

Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.


Solution

  • I saw the actual error, did not made sense to me. Went on serverfault and many other websites but no luck. After that tried installing MariaDB with root user with "sudo" prefix and it did the trick.

    By the way I was following process from following URL: https://mariadb.com/kb/en/mariadb/yum/