PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed

Access to the db has stopped working on my website.

_Next PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
_

The code was previously working, which suggests a network issue.
I checked the forum and added a port as suggested which didn’t work.

I also set up a test page http://adam-test.epizy.com/test.php which doesn’t work either.

Any ideas?

thanks

Well as far as I know the only thing I know here is the number “2002” is an error which means it can’t connect to Local MySQL socket and there is a MySQL Error

Thanks. Yeah the db is up and ok via myadmin, so looks like a connection issue between web and db server

It’s working fine now. It likely was just a temporary issue with resolving the MySQL server hostname.

Thanks do you know what caused/fixed it?
is there any way I can check service status for issues?

cheers

@AdamBombe said:
Thanks do you know what caused/fixed it?

Not really, server staff probably noticed and fixed it before I could ask them about it.

@AdamBombe said:
is there any way I can check service status for issues?

We don’t have a public service status page, if that’s what you’re asking about.

@AdamBombe said:
Thanks do you know what caused/fixed it?
is there any way I can check service status for issues?

cheers

@AdamBombe said:
Thanks do you know what caused/fixed it?
is there any way I can check service status for issues?

cheers

As Inifnityfree uses iFastNet then you can check server status at https://ifastnet.com/portal/serverstatus.php

@Ranakhas said:

@AdamBombe said:
Thanks do you know what caused/fixed it?
is there any way I can check service status for issues?

cheers

@AdamBombe said:
Thanks do you know what caused/fixed it?
is there any way I can check service status for issues?

cheers

As Inifnityfree uses iFastNet then you can check server status at https://ifastnet.com/portal/serverstatus.php

So do you know which server in that list hosts your website?

While we do use servers from iFastNet, there is not a single, specific server responsible for hosting any particular website. It’s all distributed across the cluster.

And note that there are no issues listed on iFastNet’s server status page at all. Not even any resolved issues. I don’t think that page is actually being maintained.