MariaDB on Centos7, service still called MySql
I have a Centos 7 server.
Removed previous MariaDb 5.5 and installed MariaDb 10 following https://mariadb.com/kb/en/mariadb/yum/
Added the MariaDB YUM Repository,and then executed:
sudo yum install MariaDB-server MariaDB-client
All good, then when I try to run:
sudo systemctl start mariadb
I get:
Failed to start mariadb.service: Unit mariadb.service failed to load: No such file or directory.
Yet if I run:
sudo systemctl start mysql
Works and starts MariaDb. On a different server I can start MariaDb by calling it MariaDb not MySql as on this instance. I'm finding this a bit annoying. Have repeatedly removed MariaDb, rm -r /var/lib/mysql* but to no avail.
Server one works:
[root@phos bod]# rpm --query centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64
[root@phos bod]# systemctl start mariadb.service
[root@phos bod]#
Server Two (same OS & same version of MariaDB) doesn't work:
[root@carpo bod]# rpm --query centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64
[root@carpo bod]# systemctl start mariadb.service
Failed to start mariadb.service: Unit mariadb.service failed to load: No such file or directory.
[root@carpo bod]# systemctl start mysql
[root@carpo bod]#
My question is: How can I manage the MariaDb service by it's correct name on Server Two?
The name that MariaDB chose to give the service is mysql
. If you want to see this changed, file a bug report with them and give them a very good argument.