Last active
July 6, 2017 21:40
-
-
Save brunorozendo/7b4d2a26e37e5aa3317058a1b078b7be to your computer and use it in GitHub Desktop.
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 -S postgresql | |
sudo su | |
passwd postgres | |
sudo su postgres | |
initdb --locale pt_BR.UTF-8 -E UTF8 -D '/var/lib/postgres/data' | |
exit | |
systemctl enable postgresql.service | |
systemctl start postgresql.service | |
sudo su postgres | |
psql | |
ALTER USER postgres WITH PASSWORD 'admin'; | |
\q | |
exit | |
exit | |
//Melhor opção para não ter quer por senha no user postgres | |
sudo -i -u postgres | |
sudo usermod -a -G postgres bruno |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment