Page 1 of 1

Unknown MySQL server host '' (2) [2005] error.

Posted: Wed Jun 03, 2015 1:59 pm
by Buddyz
Hello everyone,

I'm trying to move a phpBB forum to a new host. (VPS, CPanel/WHM)
I've moved all the files and imported the database to a freshly created one. For this I used CPanel and PHPMyAdmin.

When I try to open the Forum, I get the following error though:
Image

The blurred out text is the name of the old "$dbhost=".
This is weird, because I have actually updated it in the config.php file:
Image
This new file has overwritten the old one. Still I get the error.

Suggestions are welcome.
Thank you very much in advance!

Kind regards,

Buddyz

Re: Unknown MySQL server host '' (2) [2005] error.

Posted: Wed Jun 03, 2015 2:00 pm
by KevC
That info is cached.

Open the board’s /cache folder on the server and delete everything except index.htm and .htaccess.

Re: Unknown MySQL server host '' (2) [2005] error.

Posted: Wed Jun 03, 2015 2:14 pm
by Buddyz
Thank you very much for your prompt reply!
I thought it had something to do with cached/leftover files, but didn't know what to do.

But now I get the following error:
Image

Seems like a permission issue, am I correct?
Thanks again.

Re: Unknown MySQL server host '' (2) [2005] error.

Posted: Wed Jun 03, 2015 2:24 pm
by KevC
Yes the very last line is the important bit there.

The cache folder needs to be writeable.

phpBB3 Chmod Permissions

Re: Unknown MySQL server host '' (2) [2005] error.

Posted: Wed Jun 03, 2015 2:33 pm
by Buddyz
Thanks, KevC. Everything is working exactly as it should now.

I'd like to thank you for your time and help. :)

Kind regards,

Buddyz

Re: Unknown MySQL server host '' (2) [2005] error.

Posted: Fri Sep 16, 2016 6:44 pm
by Greylock3491
Thanks for this answer - just ran into this myself and this post saved the day!