# MySQL Error 1045 – Access Denied on InfinityFree

**URL:** <https://forum.infinityfree.com/t/mysql-error-1045-access-denied-on-infinityfree/121583>\
**Category:** Hosting Support\
**Created:** [October 25, 2026, 7:44pm UTC](https://forum.infinityfree.com/t/mysql-error-1045-access-denied-on-infinityfree/121583 "2026-10-25T19:44:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 25, 2026, 7:45pm UTC](https://forum.infinityfree.com/t/mysql-error-1045-access-denied-on-infinityfree/121583/3 "2026-10-25T19:45:02Z")

</div>

_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 database name, username and host all match your account, so the likely culprit is the password. The error says the user connected but was refused, and the knowledge base article on this error lists a wrong database name or a wrong password as the two causes.

The database password is your hosting account password, not your members area (client area) password. You can see it by logging in to the client area and clicking Manage next to the account. Then scroll down to MySQL Details and click Show next to Password. You can also change it from the same page. Update the password in your site’s config after that.

This article covers the error and the other usual checks:

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/docs?topic=49338):
>
> Many websites use MySQL databases to store information and settings. However, there are some reasons why the connection to the database may fail. This article describes some commonly seen error messages when connecting to a database, as well as some general tips to keep in mind when setting up a database connection. Common Error Messages Using MySQL is great, but the error message returned if there is an issue logging in to your database can be quite confusing. Here are some commonly seen error…

Did you paste the password from MySQL Details into your config, or one you chose yourself or used on another account?

---

_[View the full topic](https://forum.infinityfree.com/t/mysql-error-1045-access-denied-on-infinityfree/121583)._
