Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error-Unable to connect DB server


Anusha

Recommended Posts

Hi,

I created my website in localhost and is working fine. After web hosting, I am getting the following error.

 

Unable to connect to database server!

 

I updated the configure.php as below:

 

define('DB_SERVER', '127.0.0.1');

  define('DB_SERVER_USERNAME', 'hosur513_admin');
  define('DB_SERVER_PASSWORD', 'admin123');
  define('DB_DATABASE', 'hosur513_anugraha');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'mysql');
  define('CFG_TIME_ZONE', 'Indian/Mahe');
 
Please help.
 
Thanks
Anusha
Link to comment
Share on other sites

The database credentials for localhost, which I assume you mean a local server, will be different than a live server. You need to set up the database on the live server and use those credentials for the configure file.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 1 month later...

You really shouldn't make posts with your database Username, Password and the name of your database. You should change the immediately. Everything you post on here goes on Google and other search engines. This site gets crawled just like all other sites. You should change the name of your admin as well.

Link to comment
Share on other sites

  • 6 months later...

Archived

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

×
×
  • Create New...