1. View the MySQL database server and database MySQL character set.
SHOW VARIABLES LIKE 'character%';
2. View all database character sets of mysql
Select
SCHEMA_NAME,DEFAULT_CHARACTER_SET_NAME,DEFAULT_COLLATION_NAME,SQL_PATH from information_schema.SCHEMATA;
3. View the character set of the mysql data table
show table status from test like '%t6%'/G;
4. View the character set of the mysql database column
show full columns from test.books;