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

后端 未结 30 2542
南方客
南方客 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:52

    This happened to me because MySQL wasn't running. MySQL was failing to start because I had a missing /usr/local/etc/my.cnf.d/ directory.

    This was being required by my /usr/local/etc/my.cnf config file as a glob include (include /usr/local/etc/my.cnf.d/*.cnf).

    Running mkdir /usr/local/etc/my.cnf.d, and then starting MySQL, fixed the issue.

提交回复
热议问题