{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreihsn6gfcd5fiaspkryrldp7h5aui67cdvqhfbsizdp5nybpsxlti4",
    "uri": "at://did:plc:qfsyszxhq5agxsg2n5zo4lno/app.bsky.feed.post/3mmck35sfwvj2"
  },
  "path": "/t/problem-connecting-php-site-to-external-mariadb/118769#post_7",
  "publishedAt": "2026-05-20T17:18:59.000Z",
  "site": "https://forum.infinityfree.com",
  "textContent": "“Erreur de connexion : SQLSTATE[HY000] [2002] Connection timed out”\nIt says “Erreur de connexion : SQLSTATE[HY000] [2002] No such file or directory” for me maybe make it go to a real file or directory\n\n(Erreur de connexion means Connection Error)\n\n\n\n\n\nAlso:\n\nphp\n**Warning** : Undefined variable $host in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **10**\n\n**Warning** : Undefined variable $dbname in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **10**\n\n**Warning** : Undefined variable $user in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **10**\n\n**Warning** : Undefined variable $password in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **10**\n\n# **Test de connexion à la base de données**\n\n**Hôte :**\n**Warning** : Undefined variable $host in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **65**\n\n**Base de données :**\n**Warning** : Undefined variable $dbname in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **66**\n\n**Utilisateur :**\n**Warning** : Undefined variable $user in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **67**\n\n**Mot de passe :**\n**Warning** : Undefined variable $password in **/home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php** on line **68\n\nMaybe try to add the password, host username DB name**",
  "title": "Problem connecting PHP site to external MariaDB"
}