use psql to create database from sql file code example Example: psql create database CREATE DATABASE dbname;