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

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

    I had similar problems accessing my Drupal website. I fixed it by opening the command line, and restarting my MySQL server or service:

    service mysqld restart
    

    This should work. If it doesn't, restart your local webserver:

    service httpd restart
    

    That should be enough. Hope it works for other environments, too. Note that these commands generally require superuser privileges.

提交回复
热议问题