# Access Denied Error for MySQL User

**URL:** <https://forum.infinityfree.com/t/access-denied-error-for-mysql-user/116029>\
**Category:** Hosting Support\
**Created:** [October 13, 2025, 7:54pm UTC](https://forum.infinityfree.com/t/access-denied-error-for-mysql-user/116029 "2025-10-13T19:54:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 14, 2025, 9:36am UTC](https://forum.infinityfree.com/t/access-denied-error-for-mysql-user/116029/5 "2025-10-14T09:36:41Z")

</div>

First of all, note that this is a public forum, so any details you share here are visible to everyone. That means, especially, **DO NOT SHARE ANY SENSITIVE DETAILS SUCH AS PASSWORD HERE!**

I have hidden the password in your message and reset your hosting account password for good measure.

> [@AdeptCinemaDev](#):
>
> These tests prove that the server crashes on the line $conn = new mysqli(…). This means the PHP MySQLi extension is not working correctly on my hosting account. It is either disabled, misconfigured, or broken.

The 500 error means that your code is crashing. But it doesn’t give any information _why_ the code is crashing. To figure that out, please enable display\_errors on your website to get an actual error message:

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

Note that you’ll also need to update the database password, since I reset it.

To go from “my code is crashing” to “the PHP extension is not working correctly” is a big leap in judgement that ignores a whole host of possible issues that you’re not even checking for.

---

_[View the full topic](https://forum.infinityfree.com/t/access-denied-error-for-mysql-user/116029)._
