Alphabetical Listing of Files

createdb

Description

The createdb utility is a command-line alternative to the CREATE DATABASE SQL clause.

Usage/Options
createdb [options] name [comment] 
Option Description
-e, --echo Echoes backend messages to stdout.
-E, --encoding type Character encoding scheme.
-h, --host host The hostname where the server resides.
-p, --port port The port or socket file of the listening server.
-q, --quiet Do not return any responses from the back end.
-U, --username user Connects as this username.
-W, --password Prompts for the password.
-D, --location path Alternate path to the database location.
name The name of the database to create.
comment Description or explanation of the database.
Examples
 $ createdb mydatabase ...

Get PostgreSQL Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.