# Pages with mysql won't load

**URL:** <https://forum.infinityfree.com/t/pages-with-mysql-wont-load/68320>\
**Category:** Hosting Support\
**Created:** [November 12, 2022, 3:17pm UTC](https://forum.infinityfree.com/t/pages-with-mysql-wont-load/68320 "2022-11-12T15:17:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [November 13, 2022, 2:34am UTC](https://forum.infinityfree.com/t/pages-with-mysql-wont-load/68320/8 "2022-11-13T02:34:22Z")

</div>

> [@moonmanxp](#):
>
> Connection failed: SQLSTATE[HY000] [2002] No such file or directory

This may help

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338/1):
>
> ### No such file or directory
> 
> The message `No such file or directory` is shown when you’re using `localhost` as your database hostname. Using `localhost` means your script will look for the database on the same server as your website, which does not work on InfinityFree.
> 
> The database hostname should look like `sql123.epizy.com`, but the exact value depends on your account. You can find your database hostname in your control panel under MySQL Databases.

---

_[View the full topic](https://forum.infinityfree.com/t/pages-with-mysql-wont-load/68320)._
