xanadu1984 Posted January 16, 2009 Share Posted January 16, 2009 I`ve spent literally hours and hours trying to get to the bottom of this, trawling through forums etc. During installation, it says database imported fine, but then produces this error after the install and the database still has no tables! Seems like the sql query threw up an error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in catalog\install\includes\functions\database.php on line 39 and while trying to go to admin: 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration Now, someone said this was to do with the version of php, and they are different on our db server and on our web server, as it happens. The web server is on 5, apparently Somebody said you need to have php_value register_long_arrays=1 included in the .htaccess file, presumably the one closest to the includes folder, but it still doesn`t seem to work, returning the same error. Any ideas? Going quietly insane here :-( Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 16, 2009 Share Posted January 16, 2009 Have you checked the db credentials in your configuration files are correct? /admin/includes/configure.php /includes/configure.php Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Guest Posted January 18, 2009 Share Posted January 18, 2009 This may help you figure it out: http://www.oscommerce.com/forums/index.php?sho...186&hl=1046 Chelle Link to comment Share on other sites More sharing options...
Guest Posted January 18, 2009 Share Posted January 18, 2009 It is assumed that you created the database in mysql before you started the installation. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.