Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jeevamugunthan's avatar

SQLSTATE[HY000] [1045] Access denied for user 'bluexyz_marketnew'@'localhost'

Hi, I'm getting the following error

Illuminate\Database\QueryException
SQLSTATE[HY000] [1045] Access denied for user 'bluexyz_marketnew'@'localhost' (using password: YES) (SQL: select * from `sessions` where `id` = WNbkwFbho2vfuuZyZSu4Uf2lCrnBLIJWH9eTBvST limit 1)

Please help me to resolve this.

I'm using shared hosting, I have uploaded the files after clear the cache still I got this error session table is not updated, is there any other ways to clear the cache.

Thank you

0 likes
1 reply
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Well it seems that the username or password is incorrect?

One thing to try though

DB_HOST=127.0.0.1
1 like

Please or to participate in this conversation.