Reputation: 1702
how do i determine what a mysql db's charset is set to? in the cli?
Upvotes: 3
Views: 933
Reputation: 12507
You can use the command "show table status",
it will show you a lot of information (including character set) about your tables
mysql> show table status;
Upvotes: 1
Reputation: 109182
SHOW CREATE DATABASE db-name
Will show you the default character set for the database,
SHOW CREATE TABLE db-name.table-name
Will show you the character set for a specific table (along with a lot of other information).
Upvotes: 8