Problem connecting infinityfree with marid

Website URL

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 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.

Out going conncetions to remote MySQL servers is allow only on the standard 3306 port. If filess.io gives you another port, than it won’t work.

Just why not use the database servers we have provided?

5 Likes

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

What port does filess.io requires you to use?

5 Likes

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.

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.

5 Likes

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

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

3 Likes

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

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.

6 Likes

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

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

Please define what is not working.
Any error message?

Posting vague question will likely not get you any answer

5 Likes

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.

6 Likes

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

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.

6 Likes

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

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.
7 Likes

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

Read again

5 Likes