Created
November 3, 2015 18:14
-
-
Save paulmars/18a235cf2bf7fc1ab754 to your computer and use it in GitHub Desktop.
Alter amazon RDS to utf8
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
| PARAMETER_GROUP="utf8mysql56" # no weird chars | |
| DB_FAMILY="mysql5.6" # version you are running | |
| CRED_FILE="./aws/cred-file" | |
| # create group | |
| rds-create-db-parameter-group $PARAMETER_GROUP -f $DB_FAMILY -d utf8-mysql5.6 --aws-credential-file $CRED_FILE | |
| # change params for group | |
| rds-modify-db-parameter-group $PARAMETER_GROUP -f $DB_FAMILY --aws-credential-file $CRED_FILE --parameters="name=character_set_server, value=utf8, method=immediate" --parameters="name=collation_server, value=utf8_unicode_ci, method=immediate" | |
| # reboot with params | |
| rds-modify-db-instance INSTANCENAME --db-parameter-group-name $PARAMETER_GROUP --aws-credential-file $CRED_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment