Its very obvious that one or more of username, password, db hostname may have been wrong…but I know that I have used the correct ones for all db related values. I have tried checking the db values many times, still I am getting this error.
I have also checked that the database is running by checking the PhpMyAdmin.
So, I am still at the same situation, still waiting for any other answer, which can solve this error.