I am facing 'error establishing a database connection', while I am trying to visit my site in browser. I am working in WordPress that is installed in my local computer. I have already done following things to troubleshoot:
1. Checked the correctness of my DB_Name, DB_User, DB_Password and DB_Host. (To do this I have used a php script to connect to database. By that script I could successfully connect to database. So my credentials are surely Okay.)
2. Also tried to put DB_Host as '188.8.131.52:3306' and 'localhost:3306'
3. I have also changed the MySQL Port(3306) to other values (as for example to 3307).
None of above steps was successful to solve my problem. This error is very notorious error of WordPress platform. Can any body have any solution.