osCommerce: 1046 - No Database Selected
Posted by admin in osCommerce, tips
Here is a solution to error:
1046 - No Database Selected
select configuration_key as cfgKey, configuration_value as cfgValue from configuration
[TEP STOP]
Open file /catalog/includes/confugure.php and check if your database properties (DataBase Name, UserName and PassWord) are correct.
define(’DB_SERVER’, ‘localhost’); // in most cases you don’t have to change this
define(’DB_SERVER_USERNAME’, ‘database_username’);
define(’DB_SERVER_PASSWORD’, ‘database_password’);
define(’DB_DATABASE’, ‘database_name’);
Make the same check in file /catalog/admin/includes/confugure.php for admin area to work.



Hi,
Thanks for sharing!
Bas
Webmaster
motortassen
useful tip. very thanks for sharing.
arigatou.