how to create database in postgresql in terminal code example Example: psql create database CREATE DATABASE dbname;