mercredi 22 avril 2020

Laravel: Access denied for user 'newuser'@'localhost' (using password: YES) (SQL: select * from `roles`)

i want to run my project with root user. but when i run my project,

i am getting error:

SQLSTATE[HY000] [1045] Access denied for user 'newuser'@'localhost' (using password: YES) (SQL: select * from `roles`)

in Connection.php line 647

.env:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=course
DB_USERNAME=root
DB_PASSWORD=

i want to use root with all privileges and no password, then why i am getting error:

SQLSTATE[HY000] [1045] Access denied for user 'newuser'@'localhost' (using password: YES) (SQL: select * from `roles`)

MySql:

enter image description here



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2RU3EgL
via IFTTT

Aucun commentaire:

Enregistrer un commentaire