Skip to content

Instantly share code, notes, and snippets.

@carltondickson
Last active September 16, 2020 08:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save carltondickson/8926ddbcb52ba9d26c2597378b71d645 to your computer and use it in GitHub Desktop.
Access Homestead Postgres DB from host machine

Check version

SELECT version();

PostgreSQL 12.4 (Ubuntu 12.4-1.pgdg18.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit

sudo nano /etc/postgresql/12/main/pg_hba.conf

Add the following lines

# Open access
host all all 0.0.0.0/0 md5

sudo service postgresql@12-main restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment