-
-
Save randika/9684008 to your computer and use it in GitHub Desktop.
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
# Mac Homebrew command to install the RDS command-line tools | |
# Ubuntu users may find https://launchpad.net/~awstools-dev/+archive/awstools/ useful | |
brew install rds-command-line-tools | |
rds-create-db-parameter-group mysql-utf8 -f mysql5.1 -d "MySQL 5.1 configured for UTF-8" | |
rds-modify-db-parameter-group mysql-utf8 \ | |
--parameters="name=character_set_server, value=utf8, method=immediate" \ | |
--parameters="name=character_set_client, value=utf8, method=immediate" \ | |
--parameters="name=character_set_results, value=utf8, method=immediate" \ | |
--parameters="name=collation_server, value=utf8_unicode_ci, method=immediate" \ | |
--parameters="name=collation_connection, value=utf8_unicode_ci, method=immediate" | |
# For an existing instance: | |
rds-modify-db-instance YOUR_DB_NAME --db-parameter-group-name mysql-utf8 | |
rds-reboot-db-instance YOUR_DB_NAME | |
# To create a new one: note the use of the multi-AZ option | |
rds-create-db-instance --auto-minor-version-upgrade y \ | |
--db-instance-class db.m1.small \ | |
--db-name YOUR_DB_NAME \ | |
--engine mysql \ | |
--db-parameter-group-name mysql-utf8 \ | |
--multi-az true \ | |
--master-user-password - \ | |
--port 3306 \ | |
-r, --backup-retention-period 1 \ | |
-s, --allocated-storage 5 \ | |
--master-username DESIRED_ROOT_USERNAME \ | |
--engine-version 5.1.63 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment