MySQL cannot create foreign key constraint

后端 未结 12 2265
夕颜
夕颜 2020-12-08 12:39

I\'m having some problems creating a foreign key to an existing table in a mysql database.

I have the table exp:

+-------------+--------         


        
12条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 13:18

    For me it was just the charset and collation of the DB. I changed to utf8_unicode_ci and works

提交回复
热议问题