Question

how do i determine what a mysql db's charset is set to? in the cli?

Was it helpful?

Solution

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).

OTHER TIPS

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;

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top