I\'m having some problems creating a foreign key to an existing table in a mysql database.
I have the table exp:
exp
+-------------+--------
As mentioned @Anton, this could be because of the different data type. In my case I had primary key BIGINT(20) and tried to set foreight key with INT(10)