Created
July 24, 2014 06:31
-
-
Save tonycn/ee41dbe9958d69ecb4e0 to your computer and use it in GitHub Desktop.
mysql character set
This file contains 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 | latin1 | | |
| character_set_connection | latin1 | | |
| character_set_database | latin1 | | |
| character_set_filesystem | binary | | |
| character_set_results | latin1 | | |
| character_set_server | latin1 | | |
| character_set_system | utf8 | | |
| character_sets_dir | /usr/share/mysql/charsets/ | | |
+--------------------------+----------------------------+ | |
8 rows in set (0.00 sec) | |
mysql> SET character_set_client = utf8; | |
mysql> SET character_set_connection = utf8; | |
mysql> SET character_set_results = utf8; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment