Adding foreign key to existing table gives error 1050 table already exists

后端 未结 9 1111
栀梦
栀梦 2021-01-07 18:11

I\'ve a table CustomizationSet with the columns:

customization_set_guid (which is a non-nullable guid and also the primary key)
creator_account_guid
and a fe         


        
9条回答
  •  臣服心动
    2021-01-07 18:39

    I got the same error, and since my case wasnt mentioned yet, i ll post this answer and hopefully it may save somebody's time!

    My two tables engines, where different. The one was InnoDB, and the other MyIsam.

    To change the engine of a table:

    choose table, hit alter table, and then to hit that double arrow at the right-most of the Workbench(so it will point upwards).

    Now change the engine!

提交回复
热议问题