'PDOExcpetion' with message 'SQLSTATE[HY000] [2002] No route to host

安稳与你 提交于 2019-12-12 10:44:55

问题


I am facing with this problem today, while trying to connect to a remote mysql on a network. Framework used Laravel 5.3. I have configured properly the .env file with excact credentials. Yesterday was working fine.


回答1:


It seems, that you have a network problem. Usually on a network ip changes from time to time. Please check the IP of the remote pc or computer on the network. If IP has changed, update again the .env file. Good luck.



来源:https://stackoverflow.com/questions/40544391/pdoexcpetion-with-message-sqlstatehy000-2002-no-route-to-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!