Skip to content

Commit

Permalink
Merge pull request #14 from winebarrel/winebarrel-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
winebarrel authored Dec 4, 2024
2 parents a934217 + 20b6466 commit d6e62c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit d6e62c3

Please sign in to comment.