Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving From One Server To Another


Guest

Recommended Posts

Posted

Hi,

 

Ive recently moved from to a different server and i backed up the database and the whole website. However when i have restored before i get this error;

 

1046 - No database selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

 

Ive checked the username/password and database name/password and they are all correct,

 

So i dont know whats happening or whats wrong.

 

 

Thanks

Posted

Check your configure.php files.

 

define('DB_DATABASE', 'database_name');<-- This is the name of your database you created in phpMyAdmin/MYSQL

 

Have you re-created/restore the old database in your new server/host?

  • 4 weeks later...
Posted

Also check your MySQL account permissions are correct. I ran into this error once after I incorrectly set the allowable Hosts of the MySQL account.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...