amazme Posted February 26, 2015 Share Posted February 26, 2015 Hi Guys, I'm wondering if anyone can be of assistance. I run a website through Amazon EC2 instance with mysql. Im finding every few months my website goes down with a mysql database connection error. Upon further investigation, I find the mysql service has stopped. It requires me to simply start the service again and we are back online. I did read a document some time back about having the service restart automatically when it bombs out however im unsure how to configure this. Is anyone able to assist or recommend what I can do to overcome this problem? Mark Quote Link to comment https://forums.phpfreaks.com/topic/294901-mysql-service-drops-out-affecting-my-website/ Share on other sites More sharing options...
requinix Posted February 26, 2015 Share Posted February 26, 2015 Have you tried to figure out why the service stopped in the first place? Checked MySQL and system error logs? Any reason you aren't using RDS? Quote Link to comment https://forums.phpfreaks.com/topic/294901-mysql-service-drops-out-affecting-my-website/#findComment-1506770 Share on other sites More sharing options...
amazme Posted February 26, 2015 Author Share Posted February 26, 2015 Have you tried to figure out why the service stopped in the first place? Checked MySQL and system error logs? Any reason you aren't using RDS? Hello requinix, I am fairly new to sql. What commands can I use to specifically look up the logs? Are you referring to Amazon RDS? I have created a website using Joomla Quote Link to comment https://forums.phpfreaks.com/topic/294901-mysql-service-drops-out-affecting-my-website/#findComment-1506773 Share on other sites More sharing options...
requinix Posted February 26, 2015 Share Posted February 26, 2015 The logs aren't in MySQL... If you're going to administer a server then you need to learn how to administer a server, and one of the very first things you should learn is where log files are and how to read them. Familiarize yourself with the files in /var/log. And yes, Amazon RDS. It's their cloud database service. So you don't have to manage your own MySQL server. Quote Link to comment https://forums.phpfreaks.com/topic/294901-mysql-service-drops-out-affecting-my-website/#findComment-1506791 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.