# MySQL hostname sql206.infinityfree.com does not resolve — error 2002

**URL:** <https://forum.infinityfree.com/t/mysql-hostname-sql206-infinityfree-com-does-not-resolve-error-2002/121178>\
**Category:** Hosting Support\
**Created:** [October 9, 2026, 6:09am UTC](https://forum.infinityfree.com/t/mysql-hostname-sql206-infinityfree-com-does-not-resolve-error-2002/121178 "2026-10-09T06:09:12Z")\
**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 9, 2026, 6:09am UTC](https://forum.infinityfree.com/t/mysql-hostname-sql206-infinityfree-com-does-not-resolve-error-2002/121178/3 "2026-10-09T06:09:27Z")

</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 account’s MySQL host is sql206, so the hostname you have is the right one for this account. I can’t tell from the topic why it fails, so I have two questions.

Is the PHP script running on your InfinityFree site (the [chungkhoanvn.42web.io](http://chungkhoanvn.42web.io) address), or on your own computer or another host? The error is the same either way, but the cause is different, and your DNS checks only tell us what your own network sees. Where did you see the error: on the live site, or when running the code locally?

Also, can you paste the line in your code where the hostname is set? Another user got this exact “getaddrinfo failed” error even though the hostname looked correct. The cause was a trailing space inside the quoted hostname string in the code:

> [@Cant Connect to my MySql Database](https://forum.infinityfree.com/t/cant-connect-to-my-mysql-database/77918):
>
> Website [http://my-test-website.infinityfreeapp.com/test.php](http://my-test-website.infinityfreeapp.com/test.php)Error Message Connection failed: php\_network\_getaddresses: getaddrinfo failed: Name or service not known Other Information Hi There, I am trying to connect to my mysql database from my php script called test.php. I have tried both mysql hostname: sql110.epizy. com and sql110.infinityfree. com. The password is the one created when click the show/hide button. I add spaces to the two hostname urls to bypass the topic posting system \<?…

It might not be your problem, but your post can’t rule it out. Your code line would show whether the hostname has extra characters.

I found nothing that says the sql206 hostname has moved or has a DNS fault. If the script runs on your InfinityFree site and the hostname in the code is exactly `sql206.infinityfree.com` with no stray characters, then a person needs to look at this one.

---

_[View the full topic](https://forum.infinityfree.com/t/mysql-hostname-sql206-infinityfree-com-does-not-resolve-error-2002/121178)._
