Created
January 24, 2013 07:27
-
-
Save bluerabbit/4618333 to your computer and use it in GitHub Desktop.
RDSで誰もが一度ハマるcharacter_set_database latin1をutf8にする
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
>show variables like 'character_set_database'; | |
+--------------------------+-------------------------------------------------------+ | |
| Variable_name | Value | | |
+--------------------------+-------------------------------------------------------+ | |
| character_set_database | latin1 | | |
+--------------------------+-------------------------------------------------------+ | |
>alter database {database_name} default character set utf8; | |
>show variables like 'character_set_database'; | |
+--------------------------+-------------------------------------------------------+ | |
| Variable_name | Value | | |
+--------------------------+-------------------------------------------------------+ | |
| character_set_database | utf8 | | |
+--------------------------+-------------------------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tableは作り直すか下記のDDLを実行する