# Can't seem to connect to MySQL

**URL:** <https://forum.infinityfree.com/t/cant-seem-to-connect-to-mysql/117381>\
**Category:** Hosting Support\
**Created:** [January 25, 2026, 3:52am UTC](https://forum.infinityfree.com/t/cant-seem-to-connect-to-mysql/117381 "2026-01-25T03:52:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![siglo\_ph](https://forum.infinityfree.com/letter_avatar/siglo_ph/32/6_449c533f586939b6e5f246632a46421f.png) [@siglo\_ph](https://forum.infinityfree.com/u/siglo_ph)\
**Post date:** [January 25, 2026, 9:53am UTC](https://forum.infinityfree.com/t/cant-seem-to-connect-to-mysql/117381/4 "2026-01-25T09:53:09Z")

</div>

Nothing fancy. Just follow your code, the same way you check the console, it will give you hints.

In case errors are suppressed, always enable PHP debug mode while still in development.

These might help you too:

> [@HTTP ERROR 500: fixing PHP errors on your website](https://forum.infinityfree.com/docs?topic=49352):
>
> When you open your website, your browser may show a page saying “This page isn’t working” and “is currently unable to handle this request” with the error code HTTP ERROR 500. Some browsers show a blank page instead. This means the PHP code of your website has crashed. The browser’s error page doesn’t tell you why, so the first step is to get the actual error message. Seeing a “Something Went Wrong!” page instead? That page is shown when your .htaccess file contains an error, not your PHP code…

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/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…

Also, you can always search this forum! Surprisingly, I found just now the same problem and SAME solution:

> [@Uncaught mysqli\_sql\_exception: Table](https://forum.infinityfree.com/t/uncaught-mysqli-sql-exception-table/107446/2):
>
> it looks like a likely typo in your code. double check that the name of your table matches in the code and database.
> 
> Capitisation must be the same

---

_[View the full topic](https://forum.infinityfree.com/t/cant-seem-to-connect-to-mysql/117381)._
