Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change of server, ? file to edit?


dares_uk

Recommended Posts

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

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

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 19

Unable to connect to database server!

 

thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...