AWS Linux 2 – MariaDB Not Running After Installation

amazon-web-serviceslinuxmariadb

I'm running an AWS Linux 2 AMI and installed mariadb. The packages installed are:

yum list | grep maria

But when I try to start the service running

sudo systemctl start mariadb

I get

Failed to start mariadb.service: Unit not found.

Any hints?

Best Answer

You need to enable the service first, as it comes disabled:

systemctl enable mariadb

Then you can start it normally:

systemctl start mariadb