Changing Table Engine in MySQL

后端 未结 2 1725
轮回少年
轮回少年 2020-12-08 04:18

I am using mysql and mysql workbench. I created 5 tables with innodb engine. I checked their engine and it was innodb before I insert data into them. I inserted data from 5

相关标签:
2条回答
  • 2020-12-08 04:30

    It's not obvious. If you edit the table and then select the column tab the engine widget is not immediately visible. On the upper right of the edit window you will see two down pointing chevrons. Select the arrow once and additional widgets will appear. In the upper right hand corner there will now be widgets for the schema and engine.

    0 讨论(0)
  • 2020-12-08 04:40

    From the manual: http://dev.mysql.com/doc/refman/5.1/en/alter-table.html

    For example, to convert a table to be an InnoDB table, use this statement:

    ALTER TABLE t1 ENGINE = InnoDB;
    

    The outcome of attempting to change a table's storage engine is affected by whether the desired storage engine is available and the setting of the NO_ENGINE_SUBSTITUTION SQL mode, as described in Section 5.1.11, “Server SQL Modes”.

    https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_no_engine_substitution

    When you create the table do you get any warning about the Engine type being unavailable?

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