There are few most common ways to fix database connection errors which are as given below.
1 Need to check Database details such as username or password which is exist in configuration.php is either incorrect or has been changed.
2 Compare database username and password which you created while installation and compare that with configuration.php file.
3 MySQL stopped running on to the server due to which you are facing this issue unable to connect to database so in that case need to restart the MySQL on server.
4 Database user has been deleted due to which you are facing this issue for that you need to recreate user once again with same username/password.
0 Comment(s)