Last active
March 10, 2022 21:15
-
-
Save Kylep342/7e6388aed72c3a4e808c4004ceb5fd17 to your computer and use it in GitHub Desktop.
Configure postgres for `psql` use after install via homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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