Monthly Archives: December 2014

How to start a maria mysql server on amazon linux

It should be an easy task to restart a mysql server. However, I recently ran into this:

[root@ip-172-31-44-221 ~]# service mysqld start
Redirecting to /bin/systemctl start  mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.
[root@ip-172-31-44-221 ~]#

There was nothing in /etc/init.d setup for mysql. After an hour of research I discovered this:

 1006  systemctl start mariadb.service
 1007  systemctl enable mariadb.service
 1008  /usr/bin/mysql_secure_installation

Apparently after installation of maria db you need to use systemctl.