Why my table doesnt support FOREIGN KEYS?

后端 未结 5 1308
盖世英雄少女心
盖世英雄少女心 2020-12-11 10:40

I have made a database and 10 tables in mysql(table type NONE) and i can\'t create foreign keys. An alert message says

SQLyog The selected table does not support for

5条回答
  •  庸人自扰
    2020-12-11 10:59

    The engine you're using doesn't support foreign keys (as the error message tells you obviously). You can change the engine you're using with

    ALTER TABLE `tableName` ENGINE = newEngine;
    

提交回复
热议问题