kode kesalahan 1215 tidak dapat menambahkan kendala kunci asing

Try this if are data in one or more tables from foreign key references
set foreign_key_checks=0;

Else it is a problem in forign key parameters (references parameters)
Wizard Nook