# Warning: mysqli::\_\_construct(): (HY000/2002): No such file or directory in /home/vol1000\_5/epizy.com

**URL:** <https://forum.infinityfree.com/t/warning-mysqli-construct-hy000-2002-no-such-file-or-directory-in-home-vol1000-5-epizy-com/67106>\
**Category:** Hosting Support\
**Created:** [October 10, 2022, 11:02pm UTC](https://forum.infinityfree.com/t/warning-mysqli-construct-hy000-2002-no-such-file-or-directory-in-home-vol1000-5-epizy-com/67106 "2022-10-10T23:02:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 17, 2022, 5:25pm UTC](https://forum.infinityfree.com/t/warning-mysqli-construct-hy000-2002-no-such-file-or-directory-in-home-vol1000-5-epizy-com/67106/6 "2022-10-17T17:25:45Z")

</div>

As you can see in this topic, the “No such file or directory” error means you are using `localhost` as the database hostname, instead of the actual value. This is also the default value you may see if you don’t provide any MySQL hostname to the connection.

> [@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…

Can you please debug the code to check that all the `$sql_db_???` variables are filled correctly? Your code sets them all to an empty string, but looking at the code they may be defined elsewhere. Please check and make sure that’s actually the case.

---

_[View the full topic](https://forum.infinityfree.com/t/warning-mysqli-construct-hy000-2002-no-such-file-or-directory-in-home-vol1000-5-epizy-com/67106)._
