New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Error establishing a database connection for only one wordpress blog
I have a shared webhosting account with a number of wordpress blogs installed
I am getting the error
Error establishing a database connection
for only one wordpress blog
The error log is showing
[19-Nov-2019 UTC] PHP Warning: Error while sending QUERY packet. PID=1008083 in /home//.org/wp-includes/wp-db.php on line 1924
All other wordpress blogs are functioning OK
what could be the reason for the Error establishing a database connection for only one wordpress blog
Comments
Try downgrading your php version. In my experience, its just a plugin that doesn't support newer php. Try php 7.0 or even 5.6.
@niche you might of hit your shared hosting resource limit. Have you got enough space left? That error normally means it hasn't got resources to continue.
This if its shared hosting you can check your db disk space
have you tried fixing or deleting corrupted files? sometimes that helps
mysql version should lower than 5.5,use cache,and set swap .
Congrats on your first post
Another possibility is a plugin that is not playing nice. If you have access to WP Dashboard (or ssh/ folder access via DA/CP..) Try disabling all plugins, then check if the error goes away or not. It the page loads, the root cause of the DB connection error is a plugin. Next, enable the plugins one by one and hit refresh after each - on a separate tab. Painful if you have 20 plus plugins though.
Or 100
Did you time travel and check my WP Dashboard from 2015?
First thing to check is whether the database exists, and its username and password are correct.
Are all WordPress installations identical? Up to date?
Dammit, you got me! Yes, I have a time machine.....
Dr.
Who@jordI usually do not use any plugins for my wordpress blogs