Skip to content

Instantly share code, notes, and snippets.

@Kylep342
Last active March 10, 2022 21:15
Show Gist options
  • Save Kylep342/7e6388aed72c3a4e808c4004ceb5fd17 to your computer and use it in GitHub Desktop.
Save Kylep342/7e6388aed72c3a4e808c4004ceb5fd17 to your computer and use it in GitHub Desktop.
Configure postgres for `psql` use after install via homebrew
-- Substitue my name with your OS user's name
-- for both login and database creation
-- connect to the database
psql -U kyle.pekosh -d postgres
-- Create the postgres role and your database
CREATE ROLE postgres;
ALTER ROLE postgres WITH CREATEROLE;
CREATE DATABASE "kyle.pekosh";
-- Now, just `psql` should work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment