{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiciuxjkfiuhas5p55ytitbz7kj2c5pzvmgrqe4hmsooe327obxp3u",
    "uri": "at://did:plc:qfsyszxhq5agxsg2n5zo4lno/app.bsky.feed.post/3mixhbwnhmai2"
  },
  "path": "/t/external-tidb-cloud-mysql-connection-from-infinityfree-timing-out/118262#post_1",
  "publishedAt": "2026-04-07T19:17:34.000Z",
  "site": "https://forum.infinityfree.com",
  "textContent": "Hello,\nI am having an issue connecting my website hosted on InfinityFree to an external TiDB Cloud MySQL database.\nThis connection used to work normally before, but recently it stopped working on my website.\nThe same database is still accessible normally through MySQL Workbench using the same host, port, username and password.\nOn my website, the PHP connection test returns:\n**Connection timed out**\nI also checked the TiDB Cloud network settings and the public endpoint is enabled.\nThe authorized networks currently allow public connections (`0.0.0.0 - 255.255.255.255`), so it does not appear to be an IP allowlist issue on the database side.\nBecause of that, I would like to ask:\n\n  1. Does InfinityFree currently allow outbound connections from hosted PHP websites to external MySQL-compatible databases such as TiDB Cloud?\n  2. Is there any restriction on outgoing connections to port **4000** (used by TiDB MySQL endpoint)?\n  3. Could there be any recent network change or firewall limitation on the InfinityFree side that would cause external database connections to time out?\nIf needed, I can also provide the exact PHP test script I used.\nThank you.\n\n",
  "title": "External TiDB Cloud MySQL connection from InfinityFree timing out"
}