简体   繁体   English

mysql中的外键问题

[英]foreign key problem in mysql

hay i have two tables i want to relate them with a foreign key i made it locally and works fine using innoDB but when i upload it to my server database the type of table automatically change to myISAM. 干草我有两个表,我想将它们与外键关联,我在本地将其创建,并使用innoDB可以正常工作,但是当我将其上载到服务器数据库时,表的类型会自动更改为myISAM。 when i checked the type again i found that there is no innoDB engine type instead MyISAM, MEMORY, BLACKHOLE, EXAMPLE, ARCHIVE, CSV,FEDERATED, MRG_MYISAM were there. 当我再次检查类型时,我发现没有innoDB引擎类型,而是存在MyISAM,MEMORY,BLACKHOLE,EXAMPLE,ARCHIVE,CSV,FEDERATED,MRG_MYISAM。 please help which storage engine out of these can support foreign key. 请帮助其中的哪个存储引擎可以支持外键。

None of them. 没有一个。 Only innodb supports FKs. 仅innodb支持FK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM