Last active
December 14, 2015 18:39
-
-
Save YoshihitoAso/5131314 to your computer and use it in GitHub Desktop.
[AWS][RDS]RDS Cli のインストール
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
$wget http://s3.amazonaws.com/rds-downloads/RDSCli.zip | |
$unzip RDSCli.zip | |
$export AWS_RDS_HOME=/home/ec2-user/RDSCli-1.13.002 | |
$export PATH=$PATH:$AWS_RDS_HOME/bin | |
$export EC2_REGION=ap-northeast-1 | |
$vi cred.txt | |
# Enter the AWS Keys without the < or > | |
# These can be found at http://aws.amazon.com under Account->Security Credentials | |
AWSAccessKeyId=*** | |
AWSSecretKey=*** | |
$export AWS_CREDENTIAL_FILE=/home/ec2-user/RDSCli-1.13.002/cred.txt | |
#examples | |
rds-describe-db-log-files --db-instance-identifier wordpress | |
rds-download-db-logfile --db-instance-identifier wordpress --log-file-name error/mysql-error-running.log | |
rds-watch-db-logfile --db-instance-identifier wordpress --log-file-name error/mysql-error-running.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment