Friday, October 24, 2014

Prevent MySQL to start on boot in Ubuntu

To prevent mysql from starting on boot:
  1. Open the terminal: Ctrl+Alt+T
  2. Open the mysql.conf file: nano /etc/init/mysql.conf
  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. (comment adding # at the beginning)
If you want to manually start mysql, use the following command:
service mysql start

No comments:

Post a Comment