Disable MySQL startup in Ubuntu 10.04

Ubuntu 10.04 has abandoned SysV init script approach to booting the system.

This link explains - http://www.linuxplanet.com/linuxplanet/tutorials/7033/1/

To prevent mysql from starting on boot

  • 1 go to the /etc/init directory
  • 2. open the mysql.conf file
  • 3. comment out the "start on" line near the top of the file, the "start on" might be spread across two lines, so comment out both

If you want to manually start mysql, use the following command -

  service mysql start