Last active
March 26, 2024 20:54
-
-
Save bhubr/da99154446b20c828118c82bff6e9e5a to your computer and use it in GitHub Desktop.
Revisions
-
bhubr renamed this gist
Mar 26, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
bhubr created this gist
Mar 26, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ # PostgreSQL quickstart macOS/homebrew <https://stackoverflow.com/questions/15301826/psql-fatal-role-postgres-does-not-exist> 1. install: `brew install postgres` 2. `initdb /usr/local/var/postgres` 3. `/usr/local/Cellar/postgresql@11/11.22_1/bin/createuser -s postgres` Run `psql -U postgres` ## init db 1. `CREATE ROLE app_ecommerce_nodejs WITH LOGIN PASSWORD 'passwd';` 2. `CREATE DATABASE app_ecommerce_nodejs OWNER app_ecommerce_nodejs;`