# Can't connect to new database

**URL:** <https://forum.infinityfree.com/t/cant-connect-to-new-database/88255>\
**Category:** Hosting Support\
**Created:** [January 5, 2024, 5:58pm UTC](https://forum.infinityfree.com/t/cant-connect-to-new-database/88255 "2024-01-05T17:58:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon92971189](https://forum.infinityfree.com/letter_avatar/anon92971189/32/6_449c533f586939b6e5f246632a46421f.png) [@anon92971189](https://forum.infinityfree.com/u/anon92971189)\
**Post date:** [January 5, 2024, 5:58pm UTC](https://forum.infinityfree.com/t/cant-connect-to-new-database/88255/1 "2024-01-05T17:58:14Z")

</div>

### Error Message

```auto
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) {
    errno: -3008,
    code: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: 'sql211.infinityfree.com',
    fatal: true
  },
  original: Error: getaddrinfo ENOTFOUND sql211.infinityfree.com
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) {
    errno: -3008,
    code: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: 'sql211.infinityfree.com',
    fatal: true
  }
}

```

### Other Information

I’ve just created a database, and when trying to connect to it from a backend app I’ve created and It throws the error shown above.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [January 5, 2024, 6:05pm UTC](https://forum.infinityfree.com/t/cant-connect-to-new-database/88255/2 "2024-01-05T18:05:48Z")

</div>

You can’t do that. IF provides web hosting, not DB hosting.

> [@Connecting to MySQL from an external application](https://forum.infinityfree.com/t/connecting-to-mysql-from-an-external-application/49339):
>
> Sometimes, you may want to connect to your MySQL database on your free hosting account using external software, like a desktop database manager (like MySQL Workbench) or an external program you wrote yourself (like an Android or iOS app). You cannot connect to a free hosting MySQL database from outside your hosting account. You can only interact with your free hosting database through PHP scripts uploaded to your free hosting account, or through our phpMyAdmin installation. The ability to con…

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [January 12, 2024, 6:06pm UTC](https://forum.infinityfree.com/t/cant-connect-to-new-database/88255/3 "2024-01-12T18:06:29Z")

</div>

Closed on January 12, 2024, 6:06pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
