查看MySQL数据库字符

1、查看MySQL数据库服务器和数据库MySQL字符集。

SHOW VARIABLES LIKE 'character%';

2、查看mysql 所有数据库字符集

Select

SCHEMA_NAME,DEFAULT_CHARACTER_SET_NAME,DEFAULT_COLLATION_NAME,SQL_PATH from information_schema.SCHEMATA;

3、查看mysql数据表的字符集

show table status from test like '%t6%'/G;

4、查看mysql 数据库列的字符集

show full columns from test.books;

猜你喜欢

转载自blog.csdn.net/the_shy369/article/details/127134224