如何检查MySQL表是否为UTF-8并具有storageEngine InnoDB?

| 使用Google搜索时,只能找到从一种格式更改为另一种格式的说明,但是我似乎找不到确切的方法来确定首先要使用哪种格式。 我怎么能够: 检查表中编码的字符是什么? 检查表使用什么存储引擎? 检查所有表是否都编码? 检查所有表是否都具有特定的存储引擎?     
已邀请:
您可以使用information_schema来了解每个表的引擎。
select table_name,engine 
from information_schema.tables
where table_schema = \'your_database\'
对于编码,您可以使用
show create table table_name
甚至更好
select 
c.character_set_name 
from information_schema.tables as t,
     information_schema.collation_character_set_applicability as c
where c.collation_name = t.table_collation
and t.table_schema = \"your_db\"
and t.table_name = \"table_name\";
    

要回复问题请先登录注册