hamzabos Posted May 9, 2007 Share Posted May 9, 2007 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 More sharing options...
♥FWR Media Posted May 9, 2007 Share Posted May 9, 2007 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. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
hamzabos Posted May 9, 2007 Author Share Posted May 9, 2007 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 More sharing options...
♥FWR Media Posted May 9, 2007 Share Posted May 9, 2007 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' Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
hamzabos Posted May 9, 2007 Author Share Posted May 9, 2007 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 More sharing options...
oschellas Posted May 9, 2007 Share Posted May 9, 2007 osCommerce Knowledge Base Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.