消息为"SQLSTATE [HY000] [2002]的"PDOException"无指向主机的路由 [英] 'PDOException' with message 'SQLSTATE[HY000] [2002] No route to host

查看:905
本文介绍了消息为"SQLSTATE [HY000] [2002]的"PDOException"无指向主机的路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天正尝试连接到网络上的远程mysql时遇到此问题.框架使用Laravel 5.3.我已经使用正确的凭据正确配置了.env文件.昨天工作正常.

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 exact credentials. Yesterday was working fine.

推荐答案

似乎您有网络问题.通常在网络上ip会不时更改.请检查网络上远程PC或计算机的IP.如果IP已更改,请再次更新.env文件.祝你好运.

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.

这篇关于消息为"SQLSTATE [HY000] [2002]的"PDOException"无指向主机的路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆