Skip to content

Instantly share code, notes, and snippets.

@ishtaka
Last active January 5, 2016 01:08
Show Gist options
  • Select an option

  • Save ishtaka/52d7781c8242ccce18c0 to your computer and use it in GitHub Desktop.

Select an option

Save ishtaka/52d7781c8242ccce18c0 to your computer and use it in GitHub Desktop.
[MySQL]文字コードの確認
# 現在の設定を確認
mysql> SHOW VARIABLES LIKE 'character_set%';
+--------------------------+----------------------------+
| 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/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
# データベースの文字コードを確認
SHOW CREATE DATABASE db_name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment