SQLSTATE[HY000] [1045] Access denied for user ‘somthing’@’localhost’ (using password: YES) (SQL: select * from
Hey, are you facing this error : SQLSTATE[HY000] [1045] Access denied for user ‘libromart’@’localhost’ (using password: YES) (SQL: select * from ?
It’s okay,
You Can solve easily this problem.
for this problem SQLSTATE[HY000] [1045] Access denied for user comes some reasion.
This problem comes while local to host on live server
and sometime comes in Local server as well.
Now, look at for error, what is saying, SQLSTATE[HY000] [1045], it’s come form SQL, or SQL connection problem.
and Second is Access denied for user ‘somthing’@’localhost’ (using password: YES) (SQL: select * from, it mean, your provided user and password is not match.
how to solve this?
Go to your cPanel, and click on MySQL Database.


- check your database name
- check your user name
- change your user password
- update on the .env file
If you accessing on the localhost then
database name: check correctly database name
User: root
password: ‘ ‘
If you have changed user and password on local host on Laragon, Xampp and other then use what you are
Thanks.
Balbikash Chaura
Thanks, I solved after reading your content.
Really useful, love it.
Full Stack Developer
You Are Welcome, keep learning.
Shahoriar Fahim
Thanks a lot. It works.
Full Stack Developer
that’s good.
HAMMAD
thanks it worked for me
Full Stack Developer
that’s great, You are welcome.