Laravel Access denied for user 'root'@'localhost' (using password: YES) in laravel 4.2
My error was Laravel Access denied for user 'root'@'localhost' (using password: NO)
and I only got this error at my host site.
In .env I changed:
DB_USERNAME=user
DB_PASSWORD=password
to:
DB_USERNAME='user'
DB_PASSWORD='password'
Worked for me!
Run php artisan serve
after configure .env
, not before.
DB_HOST=localhost
worked for me on Laravel 5.7