2

I have set up a micro instance server on amazon EC2.

mysql server fails frequently and due to which I get 'error establishing a database connection' whenever I access my website. To make my website work again, I have to restart mysqld. Here is the error log. Please click the link as i just opened the account on stackoverflow.

I read through other threads here for the same kind of error and accordingly I added a swapfile of 3G but I am still getting the same memory allocation error. Here is my swapfile.

I am not a technical person so please help me figure out how to solve this problem.

Community
  • 1
  • 1
casing
  • 21
  • 1
  • Read your logs and you will likely find that your web server is the actual problem, with MySQL being sacrificed by the OS to handle memory demands from the web server. See [Why is Apache Running Wild and Killing MySQL?](http://serverfault.com/questions/562453/why-is-apache-running-wild-and-killing-mysql) at Server Fault. – Michael - sqlbot Mar 08 '17 at 00:02

0 Answers0