Comments - Installing MariaDB Alongside MySQL

8 years, 5 months ago M Taha Masood

I am on Centos 7 , with default installation of MySql 5.7 . I followed the instructions in this article to parallelly install latest GA version 10.1.16 of MariaDB , but while attemtping to start MariaDb , it fails .

i.e. when I give the below command in the shell

/etc/init.d/mariadb start

The following is indicated in the localhost.localdomain.err

[root@localhost opt]# cat mariab-data/localhost.localdomain.err cat: mariab-data/localhost.localdomain.err: No such file or directory [root@localhost opt]# cat mariadb-data/localhost.localdomain.err 160726 18:24:42 mysqld_safe A mysqld process already exists 160726 18:26:00 mysqld_safe Fatal error: Can't remove the pid file: /var/run/mysqld/mysqld.pid Please remove it manually and start /opt/mariadb/bin/mysqld_safe again; mysqld daemon not started

How do I solve this problem? thanks Taha

 
8 years, 5 months ago M Taha Masood

solved it by setting the macro in /etc/init.d/mariadb at line 284 , as it is being evaluated to the one used by MySql instance.

mysqld_pid_file_path=$datadir/`hostname`.pid

Other than this the instructions on this webpage work like a charm ! thanks Taha

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.