Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.