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
Leave a Comment