Answers for "create postgres database from sql file"

38

create postgres database

sudo -u postgres psql
postgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
Posted by: Guest on September-01-2020
2

restore postgres database from sql file

psql -d database_name -f backup.sql
Posted by: Guest on July-08-2020

Code answers related to "create postgres database from sql file"

Browse Popular Code Answers by Language