# While coding can't connect MySQL database

**URL:** <https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114>\
**Category:** Hosting Support\
**Created:** [September 2, 2020, 8:14pm UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114 "2020-09-02T20:14:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GVZitm](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/gvzitm/32/9873_2.png) [@GVZitm](https://forum.infinityfree.com/u/GVZitm)\
**Post date:** [September 2, 2020, 8:14pm UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114/1 "2020-09-02T20:14:55Z")

</div>

hey i want to talk about free account in InfinityFree, i join few days ago and, but my codes can’t connect to MySQL database, is it an persistent issue?is it regular issue for every one i guess,what i supposed to the connect database?, when it gone pass?(Denaid from host.) is there any way to use the MySQL? beause already have 10-15 diffrent databases…or its an security issue for InfinityFree?

and why should i publish my website name in this forum? , (i guess admin may found my web name, also im here to learn programing ,coming from Turkey, i dont want to mess with kind attackers,hackers vs…)

---

<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:** [September 3, 2020, 8:21am UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114/2 "2020-09-03T08:21:44Z")

</div>

Hi and welcome to the forum

Please read all MySQL section in KB

> **[Common MySQL Connection Errors](https://forum.infinityfree.com/docs?topic=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...

---

<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:** [September 3, 2020, 1:29pm UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114/3 "2020-09-03T13:29:07Z")

</div>

> [@GVZitm](#):
>
> and why should i publish my website name in this forum?

In your case the address is irrelevant - it is a topic template that seeks to cover a wide range of user issues,  
and since this forum is based on community support  
in many cases it is useful to write the address of the website so that other users can test, find the cause and help.

The job is divided… so that the admin generally answers questions that other users cannot answer  
due to insufficient information, changes in the system of which they are not aware, etc.

---

<div class="post-metadata">

**Author:** ![GVZitm](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/gvzitm/32/9873_2.png) [@GVZitm](https://forum.infinityfree.com/u/GVZitm)\
**Post date:** [September 3, 2020, 1:29pm UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114/4 "2020-09-03T13:29:14Z")

</div>

> ### Make sure you are connecting from within hosting account
> 
> InfinityFree databases are only accessible from within your InfinityFree hosting acounts. Our database servers are not accessible from other locations, like developer tools on your own computer, websites on other hosting providers, game software, mobile apps and so on. Remote database access is only available with [premium hosting](https://infinityfree.net/premium/).

this is answer, for what was im asking but why?

---

<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:** [September 3, 2020, 1:32pm UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114/5 "2020-09-03T13:32:52Z")

</div>

> **[Ensuring only web browsers can access your website](https://forum.infinityfree.com/docs?topic=49353)**
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing,...

---

<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:** [September 3, 2020, 2:24pm UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114/6 "2020-09-03T14:24:00Z")

</div>

> [@GVZitm](#):
>
> and why should i publish my website name in this forum? , (i guess admin may found my web name, also im here to learn programing ,coming from Turkey, i dont want to mess with kind attackers,hackers vs…)

I can look up your forum username in the client area and find your profile there.

But sometimes people have multiple hosting accounts on different servers, with multiple domain names per hosting account and multiple websites per domain name.

I’m happy to help anyone who needs it. But then I do actually want to _help_ you, not spend hours just to figure out the information you have but will not share. I’ve seen _way, way, way_ too many cases where we’ve had to go back and forth for a week or more just to learn the issue was on a completely different website on a different client area profile.

I don’t want that to happen again. That’s why we ask you to provide all the information you have about the issue, which includes _at minimum_ the URL of the website you experience this issue on.

It also says you should provide exact error messages. And preferably also information about the software we’re using.

Also, security through obscurity is doomed to fail. If you don’t want other people to access the website, you can setup password protection or IP filtering on your site. URLs and domains are not private data.

And finally, this is not my private inbox or a support ticket system. Most people here can’t see your account details, but can still help you if provided with relevant information. If you refuse to provide that, these other kind souls cannot help you.

---

<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:** [September 18, 2020, 2:32pm UTC](https://forum.infinityfree.com/t/while-coding-cant-connect-mysql-database/35114/7 "2020-09-18T14:32:03Z")

</div>

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