barakas Posted January 10, 2009 Share Posted January 10, 2009 I recently got a new hard drive after my last one got fried. I had been working on some new features on my site offline using XAMMP. But I only have the contents of HTCDOCS backed up, which is basically. So one I had my new hard drive installed, I downloaded XAMMP and OSCOMMERCE, I installed OSCOMMERCE in the HTCDOCS folder tied to a MySql database called test. I then replaced the contents of the HTCDOCS folder with what I had backed up. However when I try to go on http://localhost I get this error: 1046 - No database selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] I figured that i would have to go into phpMyadmin and then connect the backed up information with the a MySql databse, however, I can't seem to find how to do it. Does anyone have an idea how to do this? or have I made an error before this? Is there a file in OSCOMMERCE i will have to change so it is connected to a database? thanks for your help Link to comment Share on other sites More sharing options...
barakas Posted January 10, 2009 Author Share Posted January 10, 2009 Also, when it comes to putting my new files online, how will i get it to connect to the old MySql? Link to comment Share on other sites More sharing options...
barakas Posted January 10, 2009 Author Share Posted January 10, 2009 If no one knows how I fix this, does anybody at least know where in the documentation I can find out how this stuff works? Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 11, 2009 Share Posted January 11, 2009 Try setting the configuration parameters in /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...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.