And*_*rew 11 mysql innodb myisam
我已准备好从 MyISAM 迁移到 InnoDB,但想知道是否有要查找的完整列表?例如,我没有看到任何列表提到DISABLE KEYS在 InnoDB 表上运行会抛出警告,除了ALTER TABLE. 这是我在转换之前需要了解的那种事情。我以为我可以接受我的查询,但显然不是。
这里有一些问题
以下是我之前编写和发布的一些关于如何为 MyISAM Key Cache 和 InnoDB Buffer Pool 选择合适大小的查询。
要查找哪些 MyISAM 表具有 FULLTEXT 索引,请运行以下查询:
select tbl.table_schema,tbl.table_name from
(
select table_schema,table_name
from information_schema.tables
where engine='MyISAM'
and table_schema NOT IN ('information_schema','mysql')
) tbl
INNER JOIN
(
select table_schema,table_name
from information_schema.statistics
where index_type='FULLTEXT'
) ndx
USING (table_schema,table_name);
Run Code Online (Sandbox Code Playgroud)
在升级到 MySQL 5.6 之前,此查询产生的任何内容都无法转换为 InnoDB。
| 归档时间: |
|
| 查看次数: |
6670 次 |
| 最近记录: |