N/APosted on - 02/07/2013
I randomly get this error in my browser may be it is not able to connect to the database and shows me my DB user name can anyone tell me why it is showing me the following error? And how to resolve it?
Error The website has encountered an unexpected error. Please try later. PDOException: SQLSTATE  Access denied for user ‘root’@’localhost’ (using password: YES) in lock_may_be_available() (line 167 of/home/govhashc/public_html/demo/daa12/includes/lock.inc)
Error on Browser connect to DB
This error appears due to a number of reasons. This is the server error. You may try the following steps-
Grant all privileges on MySQL table for your username and password.
It could also occur if you are entering the wrong username and password. Make sure you are entering the right username and password.
Another reason could also be due to the missing pdo_mysql extension. Although it is installed by default but sometimes get corrupted. You can download it from