Laravel

(“SQLSTATE[HY000] [1045] Access denied for user laravel 6

Pinterest LinkedIn Tumblr

Change database password and clear cache

sudo mysql -u root -p;

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost';

flush privileges;

php artisan config:clear
php artisan cache:clear
php artisan config:cache

Write A Comment