Guest Posted September 2, 2006 Share Posted September 2, 2006 Hi, Google search <"No database selected" site:www.oscommerce.com/forums> gives me something as 1.100 pages. IMHO too many. Viewing some of them, I found the same error&solution repeated - wrong database in configuration files. Clear indication of this error is provided by this modification: replace line if ($$link) mysql_select_db($database); in admin/includes/functions/database.php and includes/functions/database.php (function tep_db_connect) with this ones if ($$link) { if (!mysql_select_db($database)) tep_db_error('Trying to select database '.$database,mysql_errno(),mysql_error()); } so in case of wrong database indicated in configuration file(s), you'll get error message 1049 - Unknown database 'wrong_database_name' Trying to select database wrong_database_name [TEP STOP] Just my 5 cents. Have a nice day Pietro Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.