Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 744
Griseld Gerveni Avatar asked Nov 11 '16 08:11

Griseld Gerveni


1 Answers

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.

like image 145
Dean Gite Avatar answered Nov 05 '22 00:11

Dean Gite