Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

1046 - No Database Selected - Catalog


Recommended Posts

I just installed oscommerce for the second time (2 different shopping carts). The first time it worked great, this time around its giving me some trouble. I got everythign set up, the database is configured just fine, even in the configure.php file it is in order. My admin control panel works just lovely as it should, but when i try to access the catalog, I get this (I'm sure youve seen this before :D)


1046 - No Database Selected


select configuration_key as cfgKey, configuration_value as cfgValue from configuration




The only thing i did differently than my last install was put the shopping cart in the main directory of my site instead of in catalog. So basically, its


instead of



Any ideas of whats going on? and yes, my configure.php is fine? ...i think...well now that i think of it here it is :D hehe


 osCommerce, Open Source E-Commerce Solutions

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.thexfaktor.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.thexfaktor.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/kmardyks/public_html/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/kmardyks/public_html/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/kmardyks/public_html/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'xxxxxxxx');
 define('DB_SERVER_PASSWORD', 'xxxxxxx');
 define('DB_DATABASE', 'xxx_xxxxx');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

My first suggestion would be to run the installation script again, and doublecheck your settings/paths during the install.


BTW, using persistenet connections makes your site run a tad faster as it does not have to re-connect to the database everytime the same user requests another page.

Link to comment
Share on other sites


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

  • Create New...