Indexofsociety Posted July 2, 2016 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.
Guest Marko30 Posted July 3, 2016 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.
Indexofsociety Posted July 3, 2016 Author Posted July 3, 2016 Thank you for the reply.I did what you said. But the error still remains.
Guest Marko30 Posted July 3, 2016 Posted July 3, 2016 Try changing from 127.0.0.1 to localhost again. Also, please post your username and website address. Thanks. 1
wolstech Posted July 4, 2016 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).
Indexofsociety Posted July 4, 2016 Author 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?!
wolstech Posted July 4, 2016 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
Indexofsociety Posted July 5, 2016 Author 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now