Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

1046 - No Database Selected


Recommended Posts

I just installed the newest version of osC to test it out and everything seems to work fine except trying to access the admin tools. I get the following


1046 - No Database Selected

select configuration_key as cfgKey, configuration_value as cfgValue from configuration



Can anyone help me out?

Link to comment
Share on other sites

In catalog/admin/includes/configure.php scroll down to the bottom to these entries


// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '******');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', '******');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'


You need to insert your UserName, and Password, and where it says DB_DATABASE your entry will probably look something like this (check with your catalog/includes/configure.php as that seems to be working).


define('DB_DATABASE', 'yourdomain_com_-_databasename');



Link to comment
Share on other sites


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

  • Create New...