Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Still needing help


dmorris

Recommended Posts

1046 - No Database Selected

 

The reson for this is because the database config details have been left blank.

 

If you are using 2.1 look in

 

admin/includes/application_top.php

catalog/includes/application_top.php

 

If you are using 2.2-CVS look in

 

admin/includes/configure.php

catalog/includes/configure.php

 

The part you are looking for looks like this

 

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

 

If you are unsure of what to fill in here ask your host :wink:

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

  • 1 year later...

I too am getting the same error.

 

I had my site running. I tried to install - Shoppe Enhancement Controller

v2.2 for osCommerce MS2 with Credit Class and Gift Voucher.

Getting more lost and confused I decide to use my back up and go back to the other working site.

 

I have done so many things I have lost track of what I have and haven't done.

 

I did go to admin/includes/configure.php

catalog/includes/configure.php

 

I added a new user with read access called mysgl and gave it a password.

Left everything below except I used my IP address for the server and put in the password I setup - same error.

I then tried mysql in define('STORE_SESSIONS', 'mysql');

 

define('DB_SERVER', ''); used IP address

define('DB_SERVER_USERNAME', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

 

Same error - please help! Newbie so please talk slow ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...