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

后端 未结 9 1108
栀梦
栀梦 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:54

    It looks like there is a bug report for this at MySQL located here:

    MySQL Bug 55296

    In the end, I guess they upgraded their server and it fixed the issue. From reading it, I'm not sure though. They did have some workarounds like putting in constraint names/changing them. If you think this is the same, I would request that the bug is reopened.

    At one point, they mention the types didn't match and workbench was responding with the wrong error (it should have been an errno 150, or errno 121). You can see the causes for those errors here: MySQL Foreign Key Errors and Errno 150

提交回复
热议问题