Laravel SQLSTATE[HY000] [2002] Connection refused

前端 未结 10 1377
情深已故
情深已故 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:17

    In attempt to provide a solution for those of you that have not found success in any of the already mentioned answers, I will share my solution.

    Coming from Windows 10 I was of the understanding that the password for the root user was always blank thus my .env file looked as follows:

    DB_USERNAME=root
    DB_PASSWORD=
    

    On Mac, the password is defaulted to "root" also. Changing my .env file to look as follows fixed my issue:

    DB_USERNAME=root
    DB_PASSWORD=root
    

提交回复
热议问题