Erreur SQLSTATE[HY000] [1049] Base 'datalib' inconnue
Résolu/Fermé
chabinot
chabinot
- Messages postés
- 282
- Date d'inscription
- mardi 10 novembre 2015
- Statut
- Membre
- Dernière intervention
- 15 mai 2022
chabinot
- Messages postés
- 282
- Date d'inscription
- mardi 10 novembre 2015
- Statut
- Membre
- Dernière intervention
- 15 mai 2022
A voir également:
- Sqlstate[hy000] [1049] unknown database
- Hy000/1049 - Meilleures réponses
- An exception occurred in driver: sqlstate[hy000] [1049] unknown database - Meilleures réponses
- Sqlstate[hy000] [1049] ✓ - Forum - PHP
- Erreur fatal en ayant tester un projet wamp/php ✓ - Forum - PHP
- Erreur : sqlstate[hy000] [1045] access denied for user ✓ - Forum - Programmation
- Sqlstate[hy000] [1045] access denied for user 'centreon'@'localhost' (using password: yes) ✓ - Forum - Linux / Unix
- Erreur : sqlstate[hy000] [1040] too many connections - Conseils pratiques - MySQL
3 réponses
chabinot
15 nov. 2017 à 04:30
- Messages postés
- 282
- Date d'inscription
- mardi 10 novembre 2015
- Statut
- Membre
- Dernière intervention
- 15 mai 2022
15 nov. 2017 à 04:30
Bonjour,
J'ai trouvé, comme j'utilise MariaDB, il fallait juste ajouter dans le DSN le port 3306.
$dsn = 'mysql:host=' . $this->host . ';port=3306,dbname=' . $this->dbname;
Merci encore à tous.
Cordialement
J'ai trouvé, comme j'utilise MariaDB, il fallait juste ajouter dans le DSN le port 3306.
$dsn = 'mysql:host=' . $this->host . ';port=3306,dbname=' . $this->dbname;
Merci encore à tous.
Cordialement