Website URL
Error Message
PDOException: SQLSTATE[HY000] [2002] No route to host
he failure happens at PDO::__construct() when connecting to MySQL. Because the app initializes the database during bootstrap, the whole site returns 500 with an empty body.
What I already checked
App code on the server matches my local build (not a missing/broken PHP file).
.env credentials look correct (DB_HOST=sql312.infinityfree.com, port 3306).
I tested these hosts from a temporary PHP script on the same account:
sql312.infinityfree.com → No route to host
sql312.byetcluster.com → No route to host
sql312.epizy.com → No route to host
So this does not look like a wrong password or application bug. The web server simply cannot reach the MySQL host (network/routing issue).
Could you please check whether sql312 is currently having an outage or connectivity problem?
Thanks.