Created
April 6, 2022 11:51
-
-
Save ant1fact/2ba03d5d76f74f2c7c2d23a8efe5a2b5 to your computer and use it in GitHub Desktop.
Install postgres on ubuntu
This file contains 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
sudo apt update | |
sudo apt upgrade | |
# Install and start postgres server | |
sudo apt install postgresql | |
sudo service postgresql start | |
# Create new (super) user | |
sudo -u postgres createuser --interactive | |
# Create db for the new user | |
sudo -u postgres createdb <USER> | |
# Test | |
psql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment