createdb
Database ManagementCreate a new PostgreSQL database
Options & Flags
Available options for this command
-OSpecify the owner of the new database
-TSpecify template database to copy
-ESpecify character encoding
Examples
Common usage examples
Create database named myapp
createdb myappCreate database with specific owner
createdb -O myuser myappCreate database with UTF-8 encoding
createdb -E UTF8 myappNotes
- Requires appropriate PostgreSQL privileges