Ina Code Blog

bunch of code in one place
« How to block spam through comments?
Website for Športni zavod Nova Gorica »


Feb
4

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’, cialis for sale ‘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.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

4 Responses to “osCommerce: 1046 - No Database Selected”

  1. Added by bas on Mar at 13

    Hi,
    Thanks for sharing!

    Bas

    Webmaster
    motortassen

  2. Added by jade on Nov at 4

    useful tip. very thanks for sharing.
    arigatou.

  3. Added by mike on Apr at 5

    Hi, I have same error ive checked the recommended configure.php for the wrong data base and wrong username/password and they both are correct what can i do?
    Please help very stuck?
    Thanks
    Mike

  4. Added by admin on May at 7

    Hi Mike
    if you still get the error 1046 there is something wrong with the data in configure.php. Is the database and user/pass for it created? Double check names..

Leave a Reply

Comment