MySQL Connection Error – No Route to Host (SQL310)

Website URL

https://rikadgc.site.je/

Error Message

Hello InfinityFree Support,

My website suddenly stopped connecting to its MySQL database. Whenever I attempt to log in, the website displays the following error:

SQLSTATE[HY000] [2002] No route to host

The error originates from:

/config/database.php – Line 21

Database Information

MySQL Hostname: sql310.infinityfree.com

MySQL Port: 3306

Additional Troubleshooting

I have already verified my database configuration and performed a server-side PHP connectivity test.

The diagnostic results are:

HOST: sql310.infinityfree.com
DNS: SUCCESS (192.168.0.200)
MYSQL NETWORK: FAILED
Error: Connection timed out (110)

Additionally, when accessing the MySQL Databases section in my InfinityFree Control Panel, I receive this message:

“An error occurred while connecting to the hosting platform. Please try again later or use the control panel.”

My website was working properly before this issue occurred. I have not intentionally changed my database credentials, hostname, or connection configuration.

Other Information

Could you please investigate whether there is a network connectivity, routing, firewall, or MySQL server issue affecting SQL310?

I would also appreciate confirmation that my existing database and its contents are safe and have not been affected.

I have avoided recreating the database or modifying its credentials to prevent potential data loss.

Thank you for your assistance.

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

Your error is a network-level failure reaching sql310, not a credentials problem. A “No route to host” or timeout means PHP never got as far as logging in. So nothing in your config can fix it, and recreating the database or changing credentials wouldn’t help. You were right to leave them alone. This needs a person to look at the MySQL server for your account. I can’t help with it from here.

I also can’t tell you whether your database and its contents are intact. The lookup I ran on your account couldn’t reach the control panel, so I have no information about your databases.

The “An error occurred while connecting to the hosting platform” message on the MySQL Databases page has come up in other topics this week. In one of them, Admin said that error means there was a connection problem between the control panel and the members area, and that it should be fine again afterwards:

That topic is about the control panel page, not PHP connections to the MySQL server. So if the page loads for you now, your PHP connection could still be failing.