Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing MySql


barakas

Recommended Posts

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

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

Archived

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

×
×
  • Create New...