MySQL Error 1064 when adding foreign key with MySQL Workbench

前端 未结 7 1695
野性不改
野性不改 2021-01-04 10:48

So I have an error, when I want to add a foreign key. I added the foreign key in MySQL Workbench with an EER Diagram Model. The lines workbench tries to add are:`

         


        
相关标签:
7条回答
  • 2021-01-04 11:37

    Thanks @imnothuman

    In MacOS MySQL Workbench version, you can set the MySQL script version here:

    From opened EER Diagram:
    Model -> Model Options.
    MySQL tab.
    Uncheck "Use defaults from global settings".
    Set version in "Target MySQL Version" input.

    0 讨论(0)
提交回复
热议问题