Voodoo Jai Posted June 27, 2008 Share Posted June 27, 2008 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. Link to comment https://forums.phpfreaks.com/topic/112236-solved-connecting-to-a-db-error-using-php-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.