MySQLWorkbench forward engineering error

前端 未结 3 1316
情书的邮戳
情书的邮戳 2021-02-15 13:25

I\'m working on a model in MySql Workbench 8.0, when I click on forward engineering and try to generate the script of my model I get

Executing SQL script in serv         


        
相关标签:
3条回答
  • 2021-02-15 13:45

    MySQL Workbench is generating the script for MySQL 8 (which supports the new invisible indexes), which you likely do not have.

    You need to specify the MySQL version you are using, either in Model\Model Options\MySQL\Target MySQL Version or, globally, in Edit\Preferences\Modelling\MySQL\Target MySQL Version.

    0 讨论(0)
  • 2021-02-15 13:59

    Alternatively, you can go on the MySQL Workbench GUI, Edit->Preferences then Modeling->Mysql and change the default target MySQL.

    0 讨论(0)
  • 2021-02-15 13:59

    I had the same problem, using version = 8.0.17.

    The error originates when a relationship is formed if No action is selected in the "Foreign Key Options" section. Ensure that the Skip in SQL generation is checked (When No action is selected).

    This should solve the problem!

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