Skip to content

Instantly share code, notes, and snippets.

@clodal
Last active August 1, 2018 04:17
Show Gist options
  • Save clodal/19ace177dc36a7a40f9fa7fdb018fa3c to your computer and use it in GitHub Desktop.
Save clodal/19ace177dc36a7a40f9fa7fdb018fa3c to your computer and use it in GitHub Desktop.
AWS RDS Tips

How to drop RDS database?

  1. Connect to remote psql shell psql --host=<DB_HOST> --port=5432 --username=<DB_USER> --dbname=postgres
  2. Enter db password if prompted
  3. DROP DATABASE <DB_NAME>;
  4. CREATE DATABASE <DB_NAME>;

Note: This assumes AWS VPC does not block the connection. Check to ensure that you have access through this port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment