Someone moved something I was telling someone to a post

“Erreur de connexion : SQLSTATE[HY000] [2002] Connection timed out”
It says “Erreur de connexion : SQLSTATE[HY000] [2002] No such file or directory” for me maybe make it go to a real file or directory

(Erreur de connexion means Connection Error)


Also:

php
Warning: Undefined variable $host in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 10

Warning: Undefined variable $dbname in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 10

Warning: Undefined variable $user in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 10

Warning: Undefined variable $password in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 10

Test de connexion à la base de données

Hôte :
Warning: Undefined variable $host in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 65

Base de données :
Warning: Undefined variable $dbname in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 66

Utilisateur :
Warning: Undefined variable $user in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 67

Mot de passe :
Warning: Undefined variable $password in /home/vol1_8/infinityfree.com/if0_41957279/htdocs/index.php on line 68

Are you seriously going to ask this in a hosting community? You’re missing database credentials in your configuration file, it’s clearly saying in error messages.

Looks like your not declaring your variables $host, $ dbname, $user and $password before they are called in your index.php file.

Its easy done :slight_smile: and don’t worry about asking questions, its actively encouraged here. Even questions that may be simple or obvious :slight_smile: its how we all learn

Wait how did this get it own post?? I reply to someone in a another post about something and this happen?
Edit:
"Split this topic 4 hours ago

A post was split to a new topic: MySQL connection error"

my guess is that one of the leaders split it thinking you were posting about your own problem, because your post looked like a copy and pasted error message.