# Connecting MySQL to infinityfree

**URL:** <https://forum.infinityfree.com/t/connecting-mysql-to-infinityfree/104840>\
**Category:** Hosting Support\
**Created:** [January 23, 2025, 3:24pm UTC](https://forum.infinityfree.com/t/connecting-mysql-to-infinityfree/104840 "2025-01-23T15:24:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon46522671](https://forum.infinityfree.com/letter_avatar/anon46522671/32/6_22734026db12803ebb3e059622ac3534.png) [@anon46522671](https://forum.infinityfree.com/u/anon46522671)\
**Post date:** [January 23, 2025, 3:24pm UTC](https://forum.infinityfree.com/t/connecting-mysql-to-infinityfree/104840/1 "2025-01-23T15:24:10Z")

</div>

My first attempt at setting up a cloud-based DB, having trouble getting the connection established through MySQL?

I gave it a connection name, copied & pasted the “hostname”, “username” & saved the password in the vault. I left the port as 3306.  
error message is pretty non-specific

“Failed to connect to MySQL at [sql102.infinityfree.com:3306](http://sql102.infinityfree.com:3306) with user if0\_38150858”

“unable to connect to [sql102.infinityfree.com:3306](http://sql102.infinityfree.com:3306)”

I am using MySQL version “MySQL Workbench 8.0.40 Community”

---

<div class="post-metadata">

**Author:** ![wasik405](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wasik405/32/55080_2.png) [@wasik405](https://forum.infinityfree.com/u/wasik405)\
**Post date:** [January 23, 2025, 3:32pm UTC](https://forum.infinityfree.com/t/connecting-mysql-to-infinityfree/104840/2 "2025-01-23T15:32:16Z")

</div>

Read this:

> [@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:** ![anon46522671](https://forum.infinityfree.com/letter_avatar/anon46522671/32/6_22734026db12803ebb3e059622ac3534.png) [@anon46522671](https://forum.infinityfree.com/u/anon46522671)\
**Post date:** [January 23, 2025, 3:33pm UTC](https://forum.infinityfree.com/t/connecting-mysql-to-infinityfree/104840/3 "2025-01-23T15:33:29Z")

</div>

ok, thanks

---

<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 30, 2025, 3:33pm UTC](https://forum.infinityfree.com/t/connecting-mysql-to-infinityfree/104840/4 "2025-01-30T15:33:39Z")

</div>

Closed on January 30, 2025, 3:33pm UTC

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