Problem adding Foreign Key using Alter Table with existing MYSQL Database - can't add it! Help!

前端 未结 6 1210
情话喂你
情话喂你 2020-12-10 14:40

I have a production database where I have renamed several column\'s that are foreign keys. Obviously mysql makes this a real pain to do in my experience.

My solution

6条回答
  •  星月不相逢
    2020-12-10 15:44

    Since it doesn't seem to be anything syntax-related, my best guess would be that you're running out of space for creating InnoDB tables.

    EDIT: Can you paste your InnoDB configuration:

    SHOW VARIABLES LIKE "inno%";
    

提交回复
热议问题