my wordpress blog showing many time error in database connection. how solve this.

Posted January 7, 2017 1.4k views
WordPressUbuntu 16.04

i am using 20 $ plan traffic is 50 real time. daily 10000 traffic.

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
2 answers


Before we could really track down the issue, we’d need to know more about your configuration.

How did you setup your Droplet? Did you use a one-click image from DigitalOcean or did you do all of the configuration yourself (i.e. using a package manager or compiling from source)?

What error(s) are you receiving? You should see output from the error either on the page or in your error_log file.

How many and what plugins are you using? Using too many plugins can slow your website down by increasing per-page processing of code and database reads/writes. Also, outdated plugins can also cause issues, so making sure all plugins are 100% up to date will at least cover this concern.

Let me know and I’ll see what I can do to help!

@jtittle i setup one-click WordPress.

Error is :- error established database connection.
I am using few plugins:-jetpack, yoast, wordfence ,w3 total cache , and 3 more.

  • @yadavpramod888

    You’d need to check your error logs to see what the exact error is. MySQL/MariaDB throw error numbers when an error occurs and that number is what we’d need.

    If the only thing you’re seeing is an error connecting to database, there’s something wrong with either the username, database name, or password that you’re using to connect with and you’d need to double check those credentials to ensure successful connection.