Created
May 8, 2021 08:14
-
-
Save alaztetik/1051c3df362fabc7e7eeabf078d16c4c to your computer and use it in GitHub Desktop.
PostgreSQL install and start-up on Linux
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 pacman -Sy postgresql | |
sudo -u postgres -i initdb /var/lib/postgres/data | |
sudo systemctl start postgresql && sudo systemctl status postgresql | |
sudo systemctl enable postgresql | |
sudo su - postgres | |
psql | |
# SQL commands | |
exit | |
sudo systemctl stop postgresql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment