Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just noticed mysqld stopped running an an ec2 instance (ubuntu). I simply started it again. How can I avoid this from happening again. Will mysqld restart if Amazon restarts the instance for any reason. If not do I need to add an entry into rc.local? Thanks

share|improve this question
First step's going to be finding out why it stopped. Check your logs. – ceejayoz Nov 14 '12 at 19:57

May be you are running out of memory. I had a site where I have used Micro instance and my web application was very heavy.So, mysql was getting down after some time as soon as it went out of memory. Also you can check the server load on your instance.

share|improve this answer

If you installed the default mysql-server ubuntu package, then it would be set to start on boot. You should not add anything to your rc.localfile.

To ensure you know when and if it dies, you need to set up your own monitoring and notifiction system.

For monitoring system options, please see this Q&A.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.