Skip to content

Instantly share code, notes, and snippets.

@44670
Created April 5, 2022 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 44670/d8a6ef19e0aa6ab39bdba61156937d88 to your computer and use it in GitHub Desktop.
Save 44670/d8a6ef19e0aa6ab39bdba61156937d88 to your computer and use it in GitHub Desktop.
How to setup postgresql in debian 11
How to setup postgresql in debian 11:
1. Install postgresql:
apt install postgresql postgresql-contrib
2. su to postgres account, in order to manipulate the database:
su - postgres
3. Create a user and database named with mydb, set password:
createuser -P mydb
createdb -O mydb mydb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment