Mysql charset cli

how to determine what mysql db character set is configured for? in cli?

+3
source share
2 answers
SHOW CREATE DATABASE db-name

Show you the default character set for the database,

SHOW CREATE TABLE db-name.table-name

Show you the character set for a particular table (along with a lot of other information).

+7
source

You can use the "show table status" command,

it will show you a lot of information (including a character set) about your tables

mysql> show table status;

+2
source

Source: https://habr.com/ru/post/1698995/


All Articles