postgres

Attach to running DB

Install the client app:

$ apt-get install postgresql-client --yes

Create database

CREATE DATABASE "<db_name>";
$ createdb "<db_name>"

List all databases

# From within the REPL
postgres=# \l
# From shell
$ psql -U <username> -l

Connect to specific database

postgres=# \c db_name

Security

results matching ""

    No results matching ""