Skip to content

parsagholipour/pgsql-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

pgsql-sheet

Enable remote access

Centos

Change listening addresses

vi /var/lib/pgsql/data/postgresql.conf
listen_addresses='*'

Give access to all dbs in pg_hba.conf

host  all  all 0.0.0.0/0 md5 

Restart

sudo systemctl restart postgresql

Postgres shell

sudo -i -u postgres
psql

Change password

sudo -u postgres psql
\password postgres

Restore DB

psql database_name < database_name_20160527.sql

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published