sql >> Base de Datos >  >> RDS >> Mysql

Código de error MySQL:1005

La mayoría de estos errores estarán relacionados con la falta de coincidencia del tipo de datos o algo así. Si pudieras revisar estos enlaces... podría ayudarte, supongo. -info.de/mysql/referential-integrity.html">Marque esto ... también Mira esto

Como dicen en el segundo enlace:

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.