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.
root@server2 [/]# /etc/init.d/mysql status
MySQL is not running, but lock file (/var/lock/subsys/mysql[FAILED]
root@server2 [/]# /etc/init.d/mysql start
Starting MySQL.The server quit without updating PID file (/[FAILED]mysql/server2.myaddress.com.br.pid).
root@server2 [/]# /etc/init.d/mysql stop
MySQL server PID file could not be found!
MySQL will not autostart uppon booting. It does work when I 'service mysql start' from terminal. MySQL has its own partition on a secondary harddrive and Mysql was installed through apt, not during OS-install. The configuration of mysql is correct, when it's running I can read and modify databases.
I have added 'insserv mysql' to make it start up on boot.