Indexofsociety Posted July 2, 2016 Share Posted July 2, 2016 Hello, I did everything to resolve the error "Database connection error (2): Could not connect to MySQL." based on this link.Also I changed 'locahhost' to 127.0.0.1 and even deleted and imported my database again. But after all of my efforts, the error still remains. my username on heliohost: aikikaiAny help would be appreciated,Thank you. Quote Link to comment Share on other sites More sharing options...
Guest Marko30 Posted July 3, 2016 Share Posted July 3, 2016 Hi, sorry for late reply! Try changing cPanel password (check Synchronize MySQL password) and then log out and log in again. If you're still experiencing problems, please delete your database and database user and create them again with different name. After you have done all that, don't forget to edit config file. Quote Link to comment Share on other sites More sharing options...
Indexofsociety Posted July 3, 2016 Author Share Posted July 3, 2016 Thank you for the reply.I did what you said. But the error still remains. Quote Link to comment Share on other sites More sharing options...
Guest Marko30 Posted July 3, 2016 Share Posted July 3, 2016 Try changing from 127.0.0.1 to localhost again. Also, please post your username and website address. Thanks. 1 Quote Link to comment Share on other sites More sharing options...
wolstech Posted July 4, 2016 Share Posted July 4, 2016 Is the database hosted on Johnny by chance (I know silly question, but we do have users who use Johnny's MySQL with a Stevie account). Quote Link to comment Share on other sites More sharing options...
Indexofsociety Posted July 4, 2016 Author Share Posted July 4, 2016 My username: aikikaiWebsite: http://iran-aikido.ir/joomla/index.php/en/ Where as I installed joomla. I'm editing configuration.php file in joomla dir, to get back my website online. Am I missing anything?! Quote Link to comment Share on other sites More sharing options...
wolstech Posted July 4, 2016 Share Posted July 4, 2016 Did you make sure the database user has the correct password? The database user's password should match the one in the configuration.php. Also, be sure to assign the user to your database in cpanel (many forget this step). 1 Quote Link to comment Share on other sites More sharing options...
Indexofsociety Posted July 5, 2016 Author Share Posted July 5, 2016 Thank you so much!I just have forgotten to set a password for the new user of my database as same as the configuration.php file.Many thanks for the support. Quote Link to comment Share on other sites More sharing options...
wolstech Posted July 5, 2016 Share Posted July 5, 2016 Glad to see you got it working 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.