RE: Failed to connect to MySQL: “No route to host”
If you got this kind of error please logged into 1and1 panel and check whether your website database was activate as “External Access” or not.It should activate otherwise you will get this kind of error.
I had experienced with this kind of error and resolved to do this.
Note: If you still having the same issue then please contact with your hosting provider they might be helped you. Best of Luck.!!!