Laravel 5 error SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)

后端 未结 3 581
走了就别回头了
走了就别回头了 2021-01-11 17:57

Sometimes (about every 20 request) I get this error. But the next (next second), the same request, is fine. I dont know why it failed the first one. Sometimes i can get anot

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-11 18:44

    Just cache your config using

    php artisan config:cache
    

    Don't forget to do this every time after setting your .env file.

提交回复
热议问题