Mysql
 sql >> Datenbank >  >> RDS >> Mysql

MySQL-Fehlercode:1005

Die meisten dieser Fehler beziehen sich auf eine fehlende Übereinstimmung des Datentyps oder so. Wenn Sie diese Links durchgehen könnten, könnte es Ihnen helfen, denke ich -info.de/mysql/referential-integrity.html">Überprüfen Sie dies ... auch Check-this

Wie sie im zweiten Link sagen:

mysql> SHOW engine innodb STATUS;

------------------------
LATEST FOREIGN KEY ERROR
------------------------
100130 17:16:57 Error IN FOREIGN KEY CONSTRAINT OF TABLE sampledb/#sql-4a0_2:
FOREIGN KEY(member_type)
REFERENCES common_lookup(common_lookup_id):
Cannot find an INDEX IN the referenced TABLE WHERE the
referenced COLUMNS appear AS the FIRST COLUMNS, OR COLUMN types
IN the TABLE AND the referenced TABLE do NOT MATCH FOR CONSTRAINT.