SQLSTATE[42000] [1044] Access denied for user 'bmsswsxf_shahed'@'localhost' to database

1k views Asked by At

Hello i am facing Illuminate\Database\QueryException SQLSTATE[42000] [1044] Access denied for user 'bmsswsxf_shahed'@'localhost' to database 'bmsswsxf_contentbasedapp' (SQL: select * from sessions where id = QLzDGJ8MYo3oBKG4WfD0PfQPkBkXJ7f0cZeuBz33 limit 1) problem when I try to run my project in cpanel

But I have update my .env file you can see this

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=bmsswsxf_contentbasedapp
DB_USERNAME=bmsswsxf_shahed
DB_PASSWORD=my pass is given here

Here is user name This is the image of user created

1

There are 1 answers

0
Abdullah Al Shahed On

create a new user and password and save it in database it`s worked