requete fatal = SELECT * FROM `commercant_recommande` WHERE `id_commercant_recommande`=:id_commercant_recommande
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' in /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php:21 Stack trace: #0 /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php(21): PDO->__construct('mysql:host=loca...', 'oyonnax_website', 'wYLnPc4CupG34vt...', Array) #1 /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php(38): DataBase::getConnexion() #2 /var/www/html/jaime-oyonnax.fr/web/class/generate/Commercant_recommande.php(376): DataBase::Lecture('SELECT * FROM `...', Array) #3 /var/www/html/jaime-oyonnax.fr/web/class/generate/Commercant_recommande.php(29): Commercant_recommande->findCommercant_recommande() #4 /var/www/html/jaime-oyonnax.fr/web/pages/entreprise/detail_annuaire.php(5): Commercant_recommande->__construct(11) #5 {main} thrown in /var/www/html/jaime-oyonnax.fr/web/class/DataBase.php on line 21