Hosting changed, now SQL error

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Marco_l87
Registered User
Posts: 20
Joined: Thu Feb 19, 2015 11:27 am

Hosting changed, now SQL error

Post by Marco_l87 » Wed Jul 10, 2019 10:21 am

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 :)

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69092
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Hosting changed, now SQL error

Post by KevC » Wed Jul 10, 2019 10:25 am

You need to talk to your hosts. That looks like a server error rather than a phpBB one.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

Marco_l87
Registered User
Posts: 20
Joined: Thu Feb 19, 2015 11:27 am

Re: Hosting changed, now SQL error

Post by Marco_l87 » Wed Jul 10, 2019 10:36 am

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

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69092
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Hosting changed, now SQL error

Post by KevC » Wed Jul 10, 2019 10:38 am

mm that's not normally the sort of error you get with that sort of fix. Glad it's working though.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

Post Reply

Return to “[3.2.x] Support Forum”