Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Unable to connect to database server!


Recommended Posts



I have a situation regarding connection with the server. After successful installation I rename the /catalog/install folder to /catalog/_install and try to access the osCommerce from the localhost by running,

http://localhost/oscommerce/catalog/index.php [for catalog]

http://localhost/oscommerce/catalog/admin/index.php [for admin]


But I have received the error message 'Unable to connect to database server!'. Then I update the files



with the manual insertion of the fields

define('DB_SERVER', '');

define('DB_SERVER_USERNAME', 'mysql');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');


I able to run the http://localhost/oscommerce/catalog/index.php file but not the second one. I do not understand the problem. Please help by providing your valuable suggestions.


Thanks & Regards.

Link to comment
Share on other sites

In the includes FOLDER (catalog and admin) where the normal configure.php files are there is a FOLDER named local


On some installs there may be a configure.php inside the local FOLDER (catalog and admin)


If there is, anything in it overrides anything in the normal configure.php files.


Something to check.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.


"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -


"Headers already sent" - The definitive help


"Cannot redeclare ..." - How to find/fix it


SSL Implementation Help


Like this post? "Like" it again over there >

Link to comment
Share on other sites


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

  • Create New...