jimsoft Posted February 16, 2009 Share Posted February 16, 2009 hi when i install osCommerce Configuration i get message The configuration was successful! But when i click on catalog or administration button then i get this message.. Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host ' jimsoft.dns-systems.net' (1) in /home/jimsoft/6U61MVR3/htdocs/catalog/includes/functions/database.php on line 18 Unable to connect to database server! plz help me what shall i do , thanks Link to comment Share on other sites More sharing options...
ricksteruk2005 Posted February 17, 2009 Share Posted February 17, 2009 check your includes/configure and your admin/includes/configure to ensure the details are correct. This is the most common reason as to why you fail to connect to the data base If they are correct, line 18 on your includes/functions/database.php should look like this if (USE_PCONNECT == 'true') { I dont help with templates (thats what the seller is for) th search function will often help, when it dont try this in google. site:http://www.oscommerce.com/forums then your search word Link to comment Share on other sites More sharing options...
yhlee Posted February 17, 2009 Share Posted February 17, 2009 hi when i install osCommerce Configuration i get message The configuration was successful! But when i click on catalog or administration button then i get this message.. Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host ' jimsoft.dns-systems.net' (1) in /home/jimsoft/6U61MVR3/htdocs/catalog/includes/functions/database.php on line 18 Unable to connect to database server! plz help me what shall i do , thanks As for catalog/includes/configure.php & catalog/admin/includes/configure.php You will need to supply the necessary credentials needed as below:- // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'YourDatabaseUsername'); define('DB_SERVER_PASSWORD', 'YourDatabasePassword'); define('DB_DATABASE', 'YourDatabaseName'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' pleasure in the job puts perfection in the work Link to comment Share on other sites More sharing options...
jimsoft Posted February 17, 2009 Author Share Posted February 17, 2009 hi dear thanks for reply me but can u tell me that What do u mean of it ""check your includes/configure and your admin/includes/configure to ensure the details are correct"" can u plz explain me thanks Link to comment Share on other sites More sharing options...
ricksteruk2005 Posted February 18, 2009 Share Posted February 18, 2009 if you look on your server with a FTP programme or any other way you use that allows you to look at all the files, look in the includes folder there is a file called configure.php its this file and also the one that is in the admin folder, then the includes folder I dont help with templates (thats what the seller is for) th search function will often help, when it dont try this in google. site:http://www.oscommerce.com/forums then your search word Link to comment Share on other sites More sharing options...
consolengames Posted February 20, 2009 Share Posted February 20, 2009 I am also getting a similar error, I have installed my site and when I try and visit the admin or catalogue page, I get the following message... "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a6319941_reece '@'10.0.0.5' (using password: YES) in /home/a6319941/public_html/admin/includes/functions/database.php on line 19 Unable to connect to database server!" My site is http://electronixstore.co.uk/admin/ or http://electronixstore.co.uk/ Please could to tell me how to resolve the error Link to comment Share on other sites More sharing options...
consolengames Posted February 20, 2009 Share Posted February 20, 2009 I am also getting a similar error, I have installed my site and when I try and visit the admin or catalogue page, I get the following message..."Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a6319941_reece '@'10.0.0.5' (using password: YES) in /home/a6319941/public_html/admin/includes/functions/database.php on line 19 Unable to connect to database server!" My site is http://electronixstore.co.uk/admin/ or http://electronixstore.co.uk/ Please could to tell me how to resolve the error I've sorted it, thanks... Link to comment Share on other sites More sharing options...
consolengames Posted February 20, 2009 Share Posted February 20, 2009 I am sorry, I have sort or resolved the issue, the catalogue http://electronixstore.co.uk/ is okay and works fine but the admin section http://electronixstore.co.uk/admin still has the error message: "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a6319941_reece '@'10.0.0.5' (using password: YES) in /home/a6319941/public_html/admin/includes/functions/database.php on line 19 Unable to connect to database server!" Please can you help me... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.