Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

MySQLで文字コードを確認する.

# MySQL文字コードを確認する

> show variables like "character%";
> +--------------------------+------------------------------------------------------+
> | Variable_name | Value |
> +--------------------------+------------------------------------------------------+
> | character_set_client | utf8 |
> | character_set_connection | utf8 |
> | character_set_database | utf8 |
> | character_set_filesystem | binary |
> | character_set_results | utf8 |
> | character_set_server | utf8 |
> | character_set_system | utf8 |
> | character_sets_dir | /usr/local/Cellar/mysql/5.6.26/share/mysql/charsets/ |
> +--------------------------+------------------------------------------------------+
>
> 8 rows in set (0.01 sec)