回答

收藏

如何确定mysql数据库类型:是的InnoDB还是MyISAM?

技术问答 技术问答 533 人阅读 | 0 人回复 | 2023-09-14

我如何确定mysql数据库类型:是的InnoDB还是MyISAM?
9 T8 t2 d/ x& {; ]' z6 _如何将MyISAM转换为InnoDB,反之亦然?
                                                                % s  s# g5 {5 n5 V& _; V
    解决方案:                                                               
  f! o9 x2 h# M2 F0 Q$ t                                                                要确定表正在使用的存储引擎,可以使用show tablestatus。Engine结果中的字段将显示该表的数据库引擎。或者,你可以engine从information_schema.tables选择以下位置的字段:
' C( \3 A6 j0 D$ ~7 _9 v; @' oselect engine from   information_schema.tables where  table_schema = 'schema_name'   and table_name = 'table_name'您可以使用alter table存储引擎之间切换以下命令:, [# R1 C8 r$ C4 J+ w! G9 O
alter table the_table engine = InnoDB;当然,您可以在哪里指定任何可用的存储引擎。
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则