Skip to content

Instantly share code, notes, and snippets.

@paulmars
Created November 3, 2015 18:14
Show Gist options
  • Select an option

  • Save paulmars/18a235cf2bf7fc1ab754 to your computer and use it in GitHub Desktop.

Select an option

Save paulmars/18a235cf2bf7fc1ab754 to your computer and use it in GitHub Desktop.
Alter amazon RDS to utf8
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