回答

收藏

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

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

我如何确定mysql数据库类型:是的InnoDB还是MyISAM?
' H6 ?4 S7 N% M1 M# S+ s2 h如何将MyISAM转换为InnoDB,反之亦然?
                                                                2 a0 C2 q# [9 l  E8 ?3 ^& k, A! b5 M
    解决方案:                                                               
5 C& n  T. r) y( |% b1 v6 \                                                                要确定表正在使用的存储引擎,可以使用show tablestatus。Engine结果中的字段将显示该表的数据库引擎。或者,你可以engine从information_schema.tables选择以下位置的字段:
  Z1 j8 ?! n/ ~select engine from   information_schema.tables where  table_schema = 'schema_name'   and table_name = 'table_name'您可以使用alter table存储引擎之间切换以下命令:! m# p/ u2 v5 F( @
alter table the_table engine = InnoDB;当然,您可以在哪里指定任何可用的存储引擎。
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则