Create PostgreSQL Database & User

Creates a PostgreSQL role (user) and a database owned by that role using psql commands. PostgreSQL security model differs from MySQL - roles have specific privilege sets.

When you need this: When setting up a new application that needs its own PostgreSQL credentials.

Variables

Command


        
2 views 0 copies
Log in to rate
Log in to save

Free account — save snippets into your own collections.