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.
Error 1045 means MySQL rejected the login, which usually comes down to the wrong password. Common MySQL Connection Errors says the database password is your hosting account password, not your members area password. You can find it in the members area: open the account, scroll to MySQL Details and click Show next to Password.
So which password did you paste into both config files? Since you updated it, it’s worth checking that it’s the one shown under MySQL Details for the account. Also check the username in the config. It should be the account username, not the database name.
The MySQL host for the hosting account behind abdullahi-portfolio.great-site.net is sql311.infinityfree.com. Is that what both configs use, and not localhost?
Only one hosting account on your profile has a website. If your second website is on a different account, tell me which MySQL host and username its config uses.
Thanks for confirming all of that so clearly — the fact that both sites fail, with the right host, username and a password copied from the dashboard, and that even connecting without selecting a database gives the same 1045, is useful. It rules out a wrong database name or a mistake in one site’s config, so the problem looks like it is on the account/authentication side rather than in your code.
One test that can help narrow it down while you wait for Admin: try logging in to phpMyAdmin from the client area with the same username and password. If phpMyAdmin also rejects them with 1045, that points to the credentials not being accepted for the account. If phpMyAdmin works, the issue is more likely in how the password is stored or read in the config files — in that case, check for an extra space or hidden character when pasting, and make sure the password used is the hosting account password, not the client area one.
If you changed the password recently, it is also worth waiting a little before trying again, as the change can take a while to sync. I would not keep resetting it repeatedly, since each reset can restart that process.