connection(); } function connection(){ $con=mysqli_connect($this->host,$this->username,$this->pwd,$this->dbname); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else{ return $con; } } }*/ ?> connection(); } function connection(){ $con=mysqli_connect($this->host,$this->username,$this->pwd,$this->dbname); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else{ return $con; } } }*/ ?> Femmes et Mathématiques

[ ]

Erreur : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)