Mobile app version of vmapp.org
Login or Join
Murray155

: How to ensure mysql starts automatically if server restarts on Ubuntu Server Occasionally for various reasons my webhost 'reboots' my VPS after doing some routine maintenance or upgrades. However

@Murray155

Posted in: #Mysql #Startup #Ubuntu #Vps

Occasionally for various reasons my webhost 'reboots' my VPS after doing some routine maintenance or upgrades. However when they do, or if I reboot the server for any reason myself, mysql doesn't restart.

To restart it I need to ssh in and run...

service mysql start


How can I make it start automatically like the other programs my website depends on to work properly. Otherwise users of my site see the site down until I can get in and fix it.

Is this an issue with Ubuntu Server or is it my vps host?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray155

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

Add that line to your /etc/rc.local file when the server reboots it will start mysql

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme