dares_uk Posted May 13, 2008 Share Posted May 13, 2008 hi, my db server recently changed, but i cant find the file i need to edit the db address in, i had a quick looking in the configoration.php file, but could see what i need to edit, can anyone help?? thanks Link to comment Share on other sites More sharing options...
♥stubbsy Posted May 13, 2008 Share Posted May 13, 2008 includes/configure.php and admin/includes/configure.php look out for these sections // define our database connection define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' also take a look here http://www.oscommerce.com/forums/index.php?showtopic=193738 Link to comment Share on other sites More sharing options...
dares_uk Posted May 14, 2008 Author Share Posted May 14, 2008 includes/configure.php and admin/includes/configure.php look out for these sections // define our database connection define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' also take a look here http://www.oscommerce.com/forums/index.php?showtopic=193738 thanks for that, read the other post too, but most of that went over my head, also my stories a little different. my website hasnt moved, only my server/server address changed. i found those line above, in my config files and changed localhost to my new server address, but reading that other post it seems i need to change other stuff too ?? as its still not working. this is my eror message. Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 61 in /pub/home/dares79/Local-Image/catalog/includes/functions/database.php on line 19Unable to connect to database server! thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.