MySQL Workbench EER Diagramm - how to change storage engine?

送分小仙女□ 提交于 2019-12-03 03:38:19

问题


I use MySQL Workbench 5.2.38. and I have made an EER Diagram. But on export I got surprised with InnoDB as defined storage engine. Altering the table afterwards is not an option because I do not have an InnoDB engine.

ERROR 1286 (42000): Unknown storage engine 'InnoDB'

So, I have changed the Default Engine via Edit-> Preferences -> Model: MySQL to MyISAM but on export there is still InnoDB in use?!

I am completely unable to find the option to change the storage engine in table editor. Can someone help me how I can change the storage engine for my tables in MySQL Workbench ERR?


回答1:


It's not very obvious but when editing a table there is a blue arrow on the right. If you click this you get more options where you can alter the storage engine.




回答2:


Global preferences should be respected by default in the Workbench Model Editor. If not, you should file a bug about this issue.

However, here's another solution that I've tried and it worked:

  1. In the Model Editor go to Model --> Model Options...
  2. Uncheck the Use Global Settings checkbox at the bottom of the dialog that appeared.
  3. Go to the Model: MySQL tab and select in the Default Storage Engine combo box the storage engine you'd like to use.

Once you do this the generated script will use the storage engine you selected.



来源:https://stackoverflow.com/questions/10085203/mysql-workbench-eer-diagramm-how-to-change-storage-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!