PDOException SQLSTATE[HY000] [2002] No such file or directory

后端 未结 30 3246
南方客
南方客 2020-11-22 03:23

I believe that I\'ve successfully deployed my (very basic) site to fortrabbit, but as soon as I connect to SSH to run some commands (such as php artisan migrate

30条回答
  •  生来不讨喜
    2020-11-22 03:40

    I ran into this problem when running PHPUnit in Elixir/Gulp, and Homestead as my Vagrant enviroment.

    In my case I edited the .env file from DB_HOST=localhost to DB_HOST=192.168.10.10 where 192.168.10.10 is the IP of my Vagrant/Homestead host.

提交回复
热议问题