Error establishing a database connection

Posted August 27, 2013 6.9k views
Dear, I just install droplet for Wordpress (follow: Then add more site to the droplet (follow: Everything work well when I go to bed last night. But, this morning, I got "Error establishing a database connection" for all of sites. I don't know why, but I try Power Cycle the droplet, and everything go well. I think that's all, but this evening, I met that problem again. Hope you can help me. My main site is: Best regards, Tien Nguyen

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
Please stop duplicating your questions. This is the 3rd time you've posted the same question. I replied to your first comment on
by Etel Sverdlov
Wordpress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality. This tutorial shows how to install Wordpress on a server with LEMP (with nginx instead of apache). It is written for Ubuntu 12.04.
Hi Kamal Nasser. So sorry but because the site is very important, so I can not wait. Hope you forgive that.

Thank you very much, and we will continue discussing on the link you shared.

Best Regards,
i've solve the same problem with ( Not Enough RAM ) by added Swap, tune SQL, Apache ...

Read this post for more detail :