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.
The details you posted match your account: the database name, username and sql211 host are all right. So the “Database connection failed” message is most likely your own script’s generic text, and it hides the real reason.
Could you make db.php print the actual error and post what it says? With MySQLi that’s mysqli_connect_error(), and with PDO it’s the message from the PDOException. The real error, such as Access denied or Unknown database, is what separates a wrong password from a wrong hostname or something else.
This article covers what each of those errors means, and it also explains that the password must be your hosting account password, not your client area password:
Please don’t post the password itself.