Last active
January 5, 2016 01:08
-
-
Save ishtaka/52d7781c8242ccce18c0 to your computer and use it in GitHub Desktop.
[MySQL]文字コードの確認
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 現在の設定を確認 | |
| 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