WordPress Database Error - Site Getting Down

Posted July 8, 2014 1.8k views

Having a Wordpress website on Digital ocean server with :
2GB Ram , 30GB SSD, CentOS 6.5 x64

But as site get 10000 visits in a day or 120+ visitors at a time gets down with message Error in establishing database connection.

I am using W3 Total cache plugin.
What configuration is best for 10,000 visits in a day.

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
1 answer


Are you seeing any messages in your MySql logs? Run:

cat /var/log/mysqld.log