October 2001
Beginner to intermediate
400 pages
7h 45m
English
The createdb utility is a command-line alternative to the CREATE DATABASE SQL clause.
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. |
$ createdb mydatabase ...
Read now
Unlock full access