Created
April 5, 2022 04:34
-
-
Save 44670/d8a6ef19e0aa6ab39bdba61156937d88 to your computer and use it in GitHub Desktop.
How to setup postgresql in debian 11
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
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