• 查看指定数据库 db_name 的字符集和排序规则
USE db_name;
SELECT @@character_set_database, @@collation_database;


  • 显示索引信息:​​SHOW INDEX FROM table_name\G​