Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Transfer OS Commerce Doc from one domain to another domain


hamzabos

Recommended Posts

Hello

Few months ago i uploaded os commerce documentation on my domain . It's work properly .Basically i m doing export business so many customers registered on my site . Nowadays i bougth new domain .In this new domain i uploaded the same documentation of old domain . Firstly i downloaded the old domain documention on my PC which included following folder's (catalog,phpmyadmin & admin) after this i uploaded these folder's on my new domain .But the following error occured when i go to catalog folder or any folder. The error is

Warning: mysql_connect(): Unknown MySQL server host 'sql6' (1) in /home/reproduc/public_html/catalog/includes/functions/database.php on line 19

Unable to connect to database server!

I think database is not connected .Please tell me where i get my database file of my old domain because so many customer data and my product information saved in this database file . I donot know how to resolve this problem OK

I shall very thankful to you if u tell me about this problem

waiting ur's reply

Hamza Khalid

Link to comment
Share on other sites

you could try changing includes/configure.php

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

 

If the DB server is 'localhost' it usually is.

 

My question would be, having moved the domains, did you change these two files ..

 

includes/configure.php

admin/includes/configure.php

 

As the paths and settings will be different at the new domain/location.

Link to comment
Share on other sites

Thanks ur quick response

Ok i changed this line with define('DB_SERVER', 'localhost'); in configure.php file . After this lines following source code available for database connection .

define('DB_SERVER_USERNAME'

define('DB_SERVER_PASSWORD',

define('DB_DATABASE',

which is same as old domain is it rigth or not

 

 

Secondly what i change in these files

includes/configure.php

admin/includes/configure.php

Please reply me

 

Important Thing i want to show the old domain registered customers data and product information on my new domain .

waiting ur's reply

Link to comment
Share on other sites

It should look something like ..

 

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'MY USERNAME');
 define('DB_SERVER_PASSWORD', 'MY PASSWORD');
 define('DB_DATABASE', 'MY DATABASE NAME');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

OK

Please tell me in which file (name of file) the information of customer's and product saved . after downloaded documentation (osCommerce) from my old domain

waiting ur's reply

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...