Forum

Thread tagged as: Problem, Error

I transferred the website from old server to new server

Error Perch could not connect to the database

Please check that the access details specified in config.php are correct. Try again

Aaron Storm

Aaron Storm 0 points

  • 4 years ago

I just updated perch to the latest version but I'm still getting an error.

Error: Could not connect to the database

Please check that the access details specified in /stormpc/config/config.php file are correct.

Simon Clay

Simon Clay 127 points

Hi Arron, have you created a new database on the new server and uploaded a copy of the old database to the new?

Your new database probably has a different name and password.

You'll need to enter these details into /stormpc/config/config.php eg.

define("PERCH_DB_USERNAME", 'ADD YOUR DATABASE USERNAME');
define("PERCH_DB_PASSWORD", 'ADD YOUR DATABASE PASSWORD');
define("PERCH_DB_SERVER", "ADD THE LOCATION OF YOUR DATABASE (often 'localhost', sometimes an IP address or url");
define("PERCH_DB_DATABASE", "ADD YOUR DATABASE NAME");

Now it's just saying this. Error Perch could not connect to the database

Please check that the access details specified in config.php are correct. Try again

I can't find the config.php file anywhere.

Nevermind I found it.

Thank you

Simon Clay

Simon Clay 127 points

That's good. Did it solve the problem?

Yes I'm all good now.