Error on Browser connect to DB

Asked By 0 points N/A Posted on -
qa-featured

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[28000] [1045] 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)

SHARE
Answered By 0 points N/A #156358

Error on Browser connect to DB

qa-featured
Hi,
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 this link
 
Regards,
Laz Zebbena

Login/Register to Answer

Related Questions