Ajout de l'erreur 1005
This commit is contained in:
parent
46fe6fd3c4
commit
c8369493bb
|
@ -791,4 +791,19 @@ Query OK, 1 row affected (0.00 sec)
|
|||
|
||||
MariaDB [(none)]> SET FOREIGN_KEY_CHECKS=1;
|
||||
Query OK, 0 rows affected (0.00 sec)
|
||||
~~~
|
||||
~~~
|
||||
|
||||
## Erreur 1005
|
||||
|
||||
si l'on rencontre ce type d'erreur :
|
||||
|
||||
ERROR 1005 (HY000) at line 13: Can't create table `ma_base`.`ma_table` (errno: 150 "Foreign key constraint is incorrectly formed")
|
||||
|
||||
Pour contourner ce problème on peut faire :
|
||||
|
||||
~~~
|
||||
MariaDB [(none)]> SET FOREIGN_KEY_CHECKS=0;
|
||||
Query OK, 0 rows affected (0.00 sec)
|
||||
~~~
|
||||
|
||||
Ne pas oublier de remettre à "1" car sinon il y a risque de réduction de performances.
|
Loading…
Reference in a new issue