Jump to content

[SOLVED] connecting to a db error using php file


Voodoo Jai

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 here');
  define('DB_DATABASE', 'poochim_shop');

 

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

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.