Wordpress Database Connection Error

VeeGeeN

Regular Member
Joined
Mar 8, 2016
Messages
426
Reaction score
307
So I'm using Newspaper 7.1.1 nulled.

Everything is fine. I post on Reddit and add a couple of upvotes anywhere under 120 users on the site at one time.. still okay..

Anywhere beyond this I begin to get Database Connection Errors.

I have no idea why and don't know how to fix it.

W3 Total Cache
Cloudflare
WooCommerce
Visual Composer
Open In New Window
Jetpack
For Regenerate Thumbnails
404 to 301
Linkify Text
tag Div Mobile and Social

Was using WP Automatic as well but have disabled and deleted the plugin in fear of that using too many connections

Any suggestions and help would be much appreciated
 
I had that a lot with Godaddy.. Thank god I transfered al my websites away from that awful hosting company
 
A specific DB Error Message would help to detect what is the problem. But as Roy Carter said, deactivate all plugins and then add them one by one to see when it stops working.
Anyway, if u will still have the problem, then shoot me a PM.
 
A specific DB Error Message would help to detect what is the problem. But as Roy Carter said, deactivate all plugins and then add them one by one to see when it stops working.
Anyway, if u will still have the problem, then shoot me a PM.
Error establishing a database connection


^^ That is literally all we see in bold black h2 lol
 
When you have a lot of users and pages caching can actually start to have the opposite than intended effect. Especially since when the cache is cleared it will start to crawl your site and doesn't care if it takes your server offline. Both WP plugins and Cloudflare.

Get Wordfence plugin and start restricting bots and crawlers.
 
What are you using Jetpack for?
Great plugin but causes problems on a lot of shared hosting.
 
I had these kind of problems when the sql querries increased. I created 2-3 more mysql logins in phpmyadmin and added a script so that each time it picks up a random connection out of 3. It was long time back. I don't know if this is the same error.
 
can you provide a screenshot . there are several reason to show this kind of error
 
This happens a Lot. Usually, the wp-options.php file is not pointing to the right database.
Deactivate the last plugin you installed and gp backwards. Similarly, if u remember creating a post/page with plenty of pages, delete that page and see if it works again.
 
This happens a Lot. Usually, the wp-options.php file is not pointing to the right database.
Deactivate the last plugin you installed and gp backwards. Similarly, if u remember creating a post/page with plenty of pages, delete that page and see if it works again.
dude
its not confuguration issue
 
Have you checked your database username and password matches with wp-config.php username and password?
Sounds like you may have deleted your database.
 
Have you checked your database username and password matches with wp-config.php username and password?
Sounds like you may have deleted your database.

This I would recommend! This is what happened to me too. So I hope you have a copy of your database.
 
Have you checked your database username and password matches with wp-config.php username and password?
Sounds like you may have deleted your database.
This I would recommend! This is what happened to me too. So I hope you have a copy of your database.

OP clearly states that his site works fine until more than a specific number of users land up on his site, which is when he gets the DB error. So how would you "recommend" checking his wp-config.php? Seriously?
 
Back
Top