SQLSTATE[HY000] [2002] A connection attempt failed.. - When attempting to connect from Local to remote server

前端 未结 1 1887
梦毁少年i
梦毁少年i 2020-11-28 16:21

env file:

APP_ENV=local
APP_DEBUG=true
APP_KEY= ...........

DB_HOST=srv3.linuxisrael.co.il
DB_DATABASE= name_of_my_database
DB_USERNAME=moti_winkler
DB_PASSW         


        
相关标签:
1条回答
  • 2020-11-28 17:06

    Hardly a surprise. The mysql socket is rarely if ever left open for connections from the public facing interface. usually mysql port (3306) can only be accessed from the private network interface.

    Even if the socket was open, there are so many things that that go wrong including firewalls getting in the way and simple timeouts.

    0 讨论(0)
提交回复
热议问题