# Problem connecting infinityfree with marid

**URL:** <https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352>\
**Category:** Hosting Support\
**Created:** [April 4, 2025, 1:12pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352 "2025-04-04T13:12:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 1:12pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/1 "2025-04-04T13:12:24Z")

</div>

### Website URL

[http://tech-design123.42web.io/](http://tech-design123.42web.io/)

### Error Message

- Setup failed: SQLSTATE[HY000] [2002] Connection timed out

### Other Information

hi infinityfree, i am a website with infinityfree and using [filess.io](http://filess.io) MariaDB but problem is that it connect to each other and gives this error " \* Setup failed: SQLSTATE[HY000] [2002] Connection timed out"" . i already database owner he told infinityfree is blocking connections to my database. i dont know what is wrong. please help me to fix the problem.

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [April 4, 2025, 1:15pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/2 "2025-04-04T13:15:56Z")

</div>

Out going conncetions to remote MySQL servers is allow **only** on the standard 3306 port. If [filess.io](http://filess.io) gives you another port, than it won’t work.

Just why not use the database servers we have provided?

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 1:16pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/3 "2025-04-04T13:16:34Z")

</div>

but i use this because they provide me. how will fix the issue?

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [April 4, 2025, 1:17pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/4 "2025-04-04T13:17:32Z")

</div>

What port does [filess.io](http://filess.io) requires you to use?

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 1:18pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/5 "2025-04-04T13:18:50Z")

</div>

they give me 61000 port when i create database. and they said your database is ok and working fine. You have to tell infinintyfree to allow connection to our database to connect.

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [April 4, 2025, 1:20pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/6 "2025-04-04T13:20:08Z")

</div>

Then it won’t work. And no, you cannot “fix” this issue, because this block is delibrate.

You must use our own database servers then, or ask them to see whether you can have your database server listening on port 3306.

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 1:21pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/7 "2025-04-04T13:21:14Z")

</div>

So you are saying i need to talk to them and tell them to change my port to 3306?

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [April 4, 2025, 1:23pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/8 "2025-04-04T13:23:39Z")

</div>

If you _really_ have to use their database, then yes.

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 1:33pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/9 "2025-04-04T13:33:29Z")

</div>

they are not changing my port. what should i do?

---

<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:** [April 4, 2025, 1:39pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/10 "2025-04-04T13:39:33Z")

</div>

Use the free databases that InfinityFree provides you? If they won’t change the port (they probably can’t anyways without messing with a lot of users stuff), you can’t use their services with your free account here.

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 1:43pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/11 "2025-04-04T13:43:58Z")

</div>

if i use change database does my website give error 500?

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 2:06pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/12 "2025-04-04T14:06:43Z")

</div>

this database is not working in different places. what should i do?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [April 4, 2025, 2:11pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/13 "2025-04-04T14:11:15Z")

</div>

> [@DAngmex](#):
>
> this database is not working

Please define what is not working.  
Any error message?

Posting vague question will likely not get you any answer

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [April 4, 2025, 2:13pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/14 "2025-04-04T14:13:13Z")

</div>

If you mean that you want to access our database servers from a remote location, then it’s also delibrate action, it’s not an issue.

> [@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:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 2:20pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/15 "2025-04-04T14:20:56Z")

</div>

i am using this infinityfree database to connect on cs2 server error appears this databse is unable to connnect.  
please help how to fix?

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [April 4, 2025, 2:22pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/16 "2025-04-04T14:22:09Z")

</div>

As I just told you, you cannot connect to our database servers from outside of our hosting. If that’s what you’re trying to do then no, there’s no “fix” for something that’s not an issue but a design.

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 2:23pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/17 "2025-04-04T14:23:14Z")

</div>

so how can i connect database outside of hosting from infinityfree?

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [April 4, 2025, 2:25pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/18 "2025-04-04T14:25:15Z")

</div>

Let me told you one last time:

- If you are trying to connect to other database servers from our hosting, then it’s OK, but you can only use the standard 3306 port. Non-standard ports are blocked, and there’s no solution.
- If you are trying to connect from other places to database servers here, then it won’t work. There’s also no solution, unless you’re willing to opt for [premium hosting](https://www.infinityfree.com/premium/).

---

<div class="post-metadata">

**Author:** ![DAngmex](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dangmex/32/55938_2.png) [@DAngmex](https://forum.infinityfree.com/u/DAngmex)\
**Post date:** [April 4, 2025, 2:27pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/19 "2025-04-04T14:27:39Z")

</div>

so what’s your port range start from to end?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [April 4, 2025, 2:28pm UTC](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352/20 "2025-04-04T14:28:58Z")

</div>

> [@DAngmex](#):
>
> what’s your port range

Read again

> [@Meishin](#):
>
> can only use the standard 3006 port

[Next page](https://forum.infinityfree.com/t/problem-connecting-infinityfree-with-marid/108352.md?page=2)
