MySQL init.d script with different configuration file

view full story

http://serverfault.com – I have two instances of mysql running on a server. I need two different init.d scripts. The two instances have different configuration files /etc/my.cnf and /etc/my-slave.cnf. I copied the /etc/init.d/mysql files to /etc/init.d/mysql-slave and changed the conf parameter to /etc/my-slave.cnf but the mysql-slave service is still controlling the first instance of mysql. The my-slave.cnf configuration file is as follows: [mysqld] user = mysql socket = /var/run/mysqld/mysqld.ip.ip.ip.ip.sock port = 32866 datadir = /var/lib/mysql.ip.ip.ip.ip server-id=18861 ma (HowTos)