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

January 7, 2017 212 views
WordPress Ubuntu 16.04

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

2 Answers

@yadavpramod888

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.

Have another answer? Share your knowledge.