Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Local testing of my site


Guest

Recommended Posts

I have copied all of my OSC web site and database to my local machine, I have a testing server on my local machine (apache/mysql/php etc) but when I try to show my E shop pages I get a

Unable to connect to database server!
error. I have been into the configure.php file and replaced some bits with what I consider to be the correct info for my local access: servername, db name, user and pwd as shown below.

  define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers

 define('DB_SERVER', 'loaclhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'username here');
 define('DB_SERVER_PASSWORD', 'pwd her');
 define('DB_DATABASE', 'poochim_shop');

 

having made theses changes I thought all should be fine but its not, can anyone help me.

Link to comment
Share on other sites

Have you gone to phpmyadmin and given the user access rights to the db?

 

Is mysql and apache running?

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

Have you gone to phpmyadmin and given the user access rights to the db?

 

Is mysql and apache running?

 

Yes I have the correct right to access the db and all programs are running, but still no connection are the details right in the configure.php file show above.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...