diff --git a/HowtoMySQL/Troubleshooting.md b/HowtoMySQL/Troubleshooting.md index 4d2e6b7c..2fb54c03 100644 --- a/HowtoMySQL/Troubleshooting.md +++ b/HowtoMySQL/Troubleshooting.md @@ -905,4 +905,21 @@ C'est qu'il faut convertir la table en format de ligne dynamique (DYNAMIC rox fo ~~~ ALTER TABLE `foo` ROW_FORMAT=DYNAMIC; -~~~ \ No newline at end of file +~~~ + +## Erreur lors de l'importation d'un dump SQL, date 00-00-0000 non acceptée + +Cela peut être parce que la variable sql_mode contient les valeurs `NO_ZERO_IN_DATE` ou `NO_ZERO_DATE`. + +Pour lister les modes activés : + +~~~ +SELECT @@GLOBAL.sql_mode; ++------------------------------------------------------------------------------------------------------------------------+ +| @@GLOBAL.sql_mode | ++------------------------------------------------------------------------------------------------------------------------+ +| STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | ++------------------------------------------------------------------------------------------------------------------------+ +~~~ + +Documentation : \ No newline at end of file