QueryException SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)

前端 未结 5 696
春和景丽
春和景丽 2021-01-12 19:57

Why is the following error occurring?

QueryException SQLSTATE[HY000] [1045] Access denied for user \'homestead\'@\'localhost\' (using password: YES)

5条回答
  •  囚心锁ツ
    2021-01-12 20:25

    You should clear the cache after changing info in the .env file.

    Run the following commands:

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

提交回复
热议问题