Error establishing a database connection

Username (e.g. epiz_31695547) or kor.rf.gd

(please specify the website or account you are asking about)

Other Information

it’s been 24 hours since my site had this issue. I have tried all WordPress debug checks and wp-config.php checks. Everything is fine. I don’t know what the actual problem here is.

One of the other websites http://pkproducts.infinityfreeapp.com/ also had the issue I tried reinstalling WordPress on this one but the issue continues to appear on both websites.

Is there any expert who can help me solve this?

Any database shown in the control panel?

Same Issue, error establishing a database connection, website was working fine till 1st July.

yes but it doesnt connect to the website

So what we will do now, what could be the possible solution?

@Hassanmrwt @bishwarupa_26 @capcap
Can you share your sql server?
It can be found in the client area https://app.infinityfree.net/
And will look something like

sqlXXX.epizy.com

Where XXX is three numbers.

sql204.epizy.com
sql111.epizy.com

I have two sites on these servers and both of them are not working.

@wackyblackie sql101.epizy.com

But in wpconfig.php it shows different database sql database

Yes, it shows different in wpconfig.php. I don’t know what could be the reason. I have a working site I have checked it. I have another site with the same things and still working.

I think the database server is down.

https://daotaolaixebactaichuan.com/register.php
sql server: sql211.epizy.com

Here is my website, i tried to create a new database but it doesnt work

I have checked http://pkproducts.infinityfreeapp.com/.

It seems that there is a connection issue between the website server and the database server. The database server itself seems to be up (if it wasn’t, you wouldn’t be able to see any databases in the control panel, let alone access them through phpMyAdmin, which all works).

It would seem that this affects other websites as well. However, this URL was the only URL where I could see a database connection issue.

In general, if something on your website is not working, please always share a URL to a page on your website where you can see that it’s not working. A database hostname alone, or a link to a page that doesn’t appear to use a database, doesn’t tell me anything.

Finally, when dealing with database errors, please check this article first:

And please always try to get the real error message from the database. WordPress has the WP_DEBUG flag you can enable to get the actual error message. “Error establishing a database connection” could be anything.


Actually, as I was writing this, the database connection appears to have come up.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.