Start Your MySQL Server Automatically After a System Restart
- Log into your mysql server
- If you are familiar with the text editor "vim" or "vi," go ahead to the next step. If not, type the following command.export EDITOR=/usr/local/bin/pico
- To add a cron job, type the following command:crontab -e
- Insert this line of text:@reboot /ux01/tools/mysql.starter
- Save and close the file using Pico. (Click for instructions on how to use pico).
- You can check the contents of your crontab by typing the following command:crontab -lIf you ever want to delete all of your cron jobs, type the following commandcrontab -r