Create and Drop Database PostgreSQL commandline shortcut


We can create / drop database in PostgreSQL without login into user account. Here is the command (Windows):

1
2
createdb -U postgres <database-name>
dropdb -U postgres <database-name>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.