diff --git a/README.md b/README.md index 0f3fa2a..a981518 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ https://github.com/winebarrel/rdsauth/releases/latest ## Usage +### PostgreSQL + ```sh $ MY_DB_HOST=database-1.cluster-abcdef012345.us-east-1.rds.amazonaws.com $ export PGPASSWORD=$(rdsauth postgres://scott@$MY_DB_HOST) @@ -18,6 +20,16 @@ $ psql -h $MY_DB_HOST -U scott postgres=> ``` +### MySQL + +```sh +$ MY_DB_HOST=database-1.cluster-abcdef012345.us-east-1.rds.amazonaws.com +$ export MYSQL_PWD=$(rdsauth mysql://scott@$MY_DB_HOST) +$ psql -h $MY_DB_HOST -u scott --enable-cleartext-plugin +... +mysql> +``` + ### CNAME support ```sh