• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Error establishing a database connection

Gitgitau

Member
Jan 25, 2021
121
17
18
Guys, since I moved to VPS hosting my woo-commerce website has been throwing this error every frequently then goes back to normal after a refresh. Could someone help me diagnose the problem and a possible solution? My site is not that busy too, less than a hundred visitors a day.

errordb.JPG
 
are you sure you have the right username and password? do you have any caching plugins?
it could be your website database down, check the error log
 
Just open your Root and run this command, and you are absolutely good to go. The Mysql gets stopped, It happens due to overload on the server even for a smaller period of time. you just have to restart it with the command mentioned below. Recommend you to go for a higher memory server.

sudo systemctl start mysql
 
Hello,

If you have just changed your host, you have to wait 24/48 hours for the DNS to propagate
 
are you sure you have the right username and password? do you have any caching plugins?
it could be your website database down, check the error log
Database credentials are fine. The problem goes away after a refresh. I am using WP Rocket Cache plugin.
 
Just open your Root and run this command, and you are absolutely good to go. The Mysql gets stopped, It happens due to overload on the server even for a smaller period of time. you just have to restart it with the command mentioned below. Recommend you to go for a higher memory server.

sudo systemctl start mysql
Is this something I have to be doing regularly?
 
Probably yes, or else upgrade to a Higher Memory Server, because I used to get the same error when I was using a 1 Gb ram server on Digital Ocean.
That could explain. I also have a 1Gb ram VPS plan with Hostinger.
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock