Bonjour,
Je suis dans mes débuts en programmation php en utilisant Wampserver 3.3.0.
J'utilise MariaDB server car MySqL server je ne connais pas le mot de passe root.
J'ai crée une Bd appelé : inscriptions
voici ma première ligne de code :
$bdd= new PDO('MariaDB:host=localhost;dbname=inscriptions; charset=utf8;','root','' );
Il me donne toujours erreur ci-dessous dans cette ligne
J'ai vérifié phpinfo() et j'ai trouvé tous les PDO enabled
Erreur renvoyé :
( ! ) Fatal error: Uncaught PDOException: could not find driver in C:\wamp64\www\membres_inscription\Index.php on line 4
( ! ) PDOException: could not find driver in C:\wamp64\www\membres_inscription\Index.php on line 4
Call Stack
# Time Memory Function Location
1 0.0013 367152 {main}( ) ...\Index.php:0
2 0.0062 474056 __construct( $dsn = 'MariaDB:host=localhost;dbname=inscriptions; charset=utf8;', $username = 'root', $password = '' ) ...\Index.php:4
Merci pour votre collaboration
Voici info des versions
- Version de Wampserver ( 3.3.0 ou 64 bits)
- Version Apache (2.4.54.2)
- Version PHP (8.0.26)
- Version MySQL (8.0.31)
- Version MariaDB (10.10.2)
- Couleur est l'icône Wampserver (verte)
Je suis dans mes débuts en programmation php en utilisant Wampserver 3.3.0.
J'utilise MariaDB server car MySqL server je ne connais pas le mot de passe root.
J'ai crée une Bd appelé : inscriptions
voici ma première ligne de code :
$bdd= new PDO('MariaDB:host=localhost;dbname=inscriptions; charset=utf8;','root','' );
Il me donne toujours erreur ci-dessous dans cette ligne
J'ai vérifié phpinfo() et j'ai trouvé tous les PDO enabled
Erreur renvoyé :
( ! ) Fatal error: Uncaught PDOException: could not find driver in C:\wamp64\www\membres_inscription\Index.php on line 4
( ! ) PDOException: could not find driver in C:\wamp64\www\membres_inscription\Index.php on line 4
Call Stack
# Time Memory Function Location
1 0.0013 367152 {main}( ) ...\Index.php:0
2 0.0062 474056 __construct( $dsn = 'MariaDB:host=localhost;dbname=inscriptions; charset=utf8;', $username = 'root', $password = '' ) ...\Index.php:4
Merci pour votre collaboration
Voici info des versions
- Version de Wampserver ( 3.3.0 ou 64 bits)
- Version Apache (2.4.54.2)
- Version PHP (8.0.26)
- Version MySQL (8.0.31)
- Version MariaDB (10.10.2)
- Couleur est l'icône Wampserver (verte)