Page 1 of 1

Hosting changed, now SQL error

Posted: Wed Jul 10, 2019 10:21 am
by Marco_l87
Hello everyone,
my phpbb forum was migrated to another hosting plan (-> server name changed).
Now I cannot access the forum anymore because i receive the following error:

"General Error
SQL ERROR [ mysqli ]

php_network_getaddresses: getaddrinfo failed: Name or service not known [2002]

An sql error occurred while fetching this page. Please contact an administrator if this problem persists."

I googled a little bit and apparently I have to change the DB path with the new server name but I can't find where to do that.
Can someone help me please?
Thank youuuu :)

Re: Hosting changed, now SQL error

Posted: Wed Jul 10, 2019 10:25 am
by KevC
You need to talk to your hosts. That looks like a server error rather than a phpBB one.

Re: Hosting changed, now SQL error

Posted: Wed Jul 10, 2019 10:36 am
by Marco_l87
Quick update:
I contacted my host's support and they guided me to change the "$dbhost" line in the config.php file, editing it to "localhost".
I feel very noob :D Anyway it's solved, thank you!!

Marco

Re: Hosting changed, now SQL error

Posted: Wed Jul 10, 2019 10:38 am
by KevC
mm that's not normally the sort of error you get with that sort of fix. Glad it's working though.