Latest News: (loading..)
Anusha

Error-Unable to connect DB server

5 posts in this topic

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Try opening services.msc from the start menu search box and try manually starting the MySQL service.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now