Anusha Posted August 2, 2016 Share Posted August 2, 2016 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 More sharing options...
Jack_mcs Posted August 2, 2016 Share Posted August 2, 2016 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. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
peterindexed Posted September 20, 2016 Share Posted September 20, 2016 year, just update the config with the localhost credentials love developing so made my own cool webshop Link to comment Share on other sites More sharing options...
ecommunlimited Posted September 21, 2016 Share Posted September 21, 2016 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 More sharing options...
sharris Posted March 27, 2017 Share Posted March 27, 2017 Try opening services.msc from the start menu search box and try manually starting the MySQL service. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.