Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

1046 - No database selected --?


Recommended Posts

When I go to the catagory folder on my in-house webserver, I get this:


1046 - No Database Selected


select configuration_key as cfgKey, configuration_value as cfgValue from configuration




mysql was installed by default with RedHat that I just installed this morning. I created the osCommerce database and imported ./install/oscommerce.sql just fine.

mysqlshow osCommerce shows everything fine.


I don't know the user/pass for the mysql database, though. Was I supposed to specify one in the "mysqladmin create osCommerce" string that created the database?? How do I find what user/pass I need for the catalog/includes/configure.php settings?


If I put "root" for user and nothing for pass and try to load up the catalog folder from a browser, this is what I get:


Parse error: parse error, unexpected ':' in /var/www/html/catalog/includes/functions/sessions.php on line 246


Warning: Cannot send session cookie - headers already sent by (output started at /var/www/html/catalog/includes/functions/sessions.php:246) in /var/www/html/catalog/includes/functions/sessions.php on line 68


Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/html/catalog/includes/functions/sessions.php:246) in /var/www/html/catalog/includes/functions/sessions.php on line 68


Fatal error: Call to undefined function: link_session_variable() in /var/www/html/catalog/includes/functions/sessions.php on line 95


Haha I suck at typing. :D :P

Link to comment
Share on other sites


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

  • Create New...