# How do I connect C# with MySQL

**URL:** <https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315>\
**Category:** Hosting Support\
**Created:** [April 3, 2023, 11:36am UTC](https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315 "2023-04-03T11:36:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vetrix21](https://forum.infinityfree.com/letter_avatar/vetrix21/32/5_5575768a8748004e209b776fc1b2916d.png) [@Vetrix21](https://forum.infinityfree.com/u/Vetrix21)\
**Post date:** [April 3, 2023, 11:36am UTC](https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315/1 "2023-04-03T11:36:06Z")

</div>

[Login to your account - InfinityFree](https://app.infinityfree.net/accounts/epiz_33897633/databases) Website URL

(please specify the URL of the site on which you are experiencing the problem)

Unable to connect to any of the specified MySQL hosts Error Message

(please share the FULL error message you see, if applicable)

![image](https://forum-cdn.infinityfree.net/original/3X/4/6/46ea560bd87a5a3268eca95d2c2b8baa238d8838.png)  
MySqlConnection conn = new MySqlConnection(“[Server=sql107.epizy.com](http://Server=sql107.epizy.com);Database=epiz\_33897633\_mover;Uid=epiz\_33897633;”);  
I have coppied the password from the site so that should not be a problem.  
Other Information

(other information and details relevant to your question)

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [April 3, 2023, 12:17pm UTC](https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315/2 "2023-04-03T12:17:12Z")

</div>

Hi and welcome to the forum

You did not provide enough information, but I assume that it is about Visual Studio or an application

> [@Connecting to MySQL from an external application](https://forum.infinityfree.com/t/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:** ![Vetrix21](https://forum.infinityfree.com/letter_avatar/vetrix21/32/5_5575768a8748004e209b776fc1b2916d.png) [@Vetrix21](https://forum.infinityfree.com/u/Vetrix21)\
**Post date:** [April 3, 2023, 1:39pm UTC](https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315/3 "2023-04-03T13:39:41Z")

</div>

It is Visual studio sorry.  
So its not possible to access the MySQL database on a free account?

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [April 3, 2023, 2:00pm UTC](https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315/4 "2023-04-03T14:00:16Z")

</div>

As the article mentioned by Oxy says, no, it isn’t possible to access it externally:

> [@Connecting to MySQL from an external application](https://forum.infinityfree.com/t/connecting-to-mysql-from-an-external-application/49339/1):
>
> **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.

---

<div class="post-metadata">

**Author:** ![Vetrix21](https://forum.infinityfree.com/letter_avatar/vetrix21/32/5_5575768a8748004e209b776fc1b2916d.png) [@Vetrix21](https://forum.infinityfree.com/u/Vetrix21)\
**Post date:** [April 3, 2023, 2:11pm UTC](https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315/5 "2023-04-03T14:11:29Z")

</div>

Oh okay good to know.

---

<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:** [April 10, 2023, 2:12pm UTC](https://forum.infinityfree.com/t/how-do-i-connect-c-with-mysql/74315/6 "2023-04-10T14:12:16Z")

</div>

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