Creating a New PostgreSQL Database at RDS
Many of us are guilty of saying “database” when we mean a database server or a DBMS. A database is a collection of tables storing related data, schemas, stored procs, and permissions. Most database servers are capable of managing many databases simultaneously.
I needed to create a new PostgreSQL database at Amazon's RDS last week. I already had an RDS instance; I needed a new database on that instance. My Google searches turned up various recipes for creating a new RDS instance.
The following worked for me:
- SSH to an EC2 instance inside our VPC, so that I could connect to the RDS instance using psql.
- Then run:
psql --host=SOME-DBMS-HOST --dbname
…continue.