Skip to content

Instantly share code, notes, and snippets.

@brunorozendo
Last active July 6, 2017 21:40
Show Gist options
  • Save brunorozendo/7b4d2a26e37e5aa3317058a1b078b7be to your computer and use it in GitHub Desktop.
Save brunorozendo/7b4d2a26e37e5aa3317058a1b078b7be to your computer and use it in GitHub Desktop.
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