Laravel SQLSTATE[HY000] [2002] Connection refused

前端 未结 10 1402
情深已故
情深已故 2020-12-18 20:44

so I want to deploy my existing laravel porject into my digitalocean vps I user this tut and I upload my site successfully

also my env file is

APP_E         


        
10条回答
  •  佛祖请我去吃肉
    2020-12-18 21:26

    In your .env file, change DB_HOST from 127.0.0.1 to localhost

    and then

    1. php artisan cache:clear
    2. php artisan route:clear
    3. php artisan config:clear
    4. php artisan view:clear

      This worked for me.

提交回复
热议问题