Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL Workbench EER Diagramm - how to change storage engine?

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?

like image 571
KIC Avatar asked Apr 10 '12 08:04

KIC


People also ask

How do I change the engine in MySQL?

Access phpMyAdmin and select your database. Then click on SQL, place the following query and click on Go: ALTER TABLE my_table ENGINE = InnoDB; If the query is executed properly, the database engine of the table will be changed to InnoDB.

How update EER diagram MySQL Workbench?

From the MySQL Workbench 5.2 window, select Database -> Synchronize model which will allow you to synchronize the model (EER diagram) with the database (you need to create a saved connection) for it.

What is the default storage engine in MySQL?

InnoDB : The default storage engine in MySQL 8.0. InnoDB is a transaction-safe (ACID compliant) storage engine for MySQL that has commit, rollback, and crash-recovery capabilities to protect user data.


1 Answers

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.

enter image description here

like image 95
John Magnolia Avatar answered Oct 17 '22 08:10

John Magnolia