HI I want to start mysql from a PHP page .i have edited the /etc/sudeors file and added a lineapache ALL=(ALL) NOPASSWD: /etc/init.d/mysqldIn PHP i have a <?php
on 02/16/2010 – Made popular on 02/16/2010
I have mysql installed (from repos) on a development machine (laptop) and I don't need the daemon running on every boot. I've copied /etc/init/mysql.conf to /etc/init/mysql.conf.old and then removed everything following the "start on" line.
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.