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.
“Database connection failed. Check config.php.” doesn’t look like a message from our servers or from MySQL. It looks like text your own site code prints when the connection attempt fails, so it doesn’t say why the connection failed. Can you get the real error from the connection code and post it? With MySQLi that’s mysqli_connect_error(), and with PDO it’s the message of the PDOException.
The real error is what separates a wrong credential from a connection problem on the server. “Access denied” and “No route to host” point to very different causes.
This article explains the common MySQL connection errors and how to display the real one:
I couldn’t check your databases from here, so I can’t say whether the database name in your config matches the one in your control panel. Your account’s MySQL host is the sql209 server you mentioned, so that’s the hostname config.php should use, not localhost.