Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1046 - No Database Selected


hiebert

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

[TEP STOP]

 

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');

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...