Postgres: mudanças entre as edições
De MochilaWiki
Ir para navegaçãoIr para pesquisar
Criou página com '== instalando == <source lang="bash"> apt-get install postgres </source> == frontend == <source lang="bash"> apt-get install pgadmin3 </source> == trocando a senha == <sourc...' |
Sem resumo de edição |
||
| Linha 8: | Linha 8: | ||
apt-get install pgadmin3 | apt-get install pgadmin3 | ||
</source> | </source> | ||
== ubuntu 14.04 com 9.4 == | |||
sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' >> /etc/apt/sources.list.d/pgdg.list" | |||
wget --q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |||
sudo apt-get update | |||
sudo apt-get install postgresql-9.4 | |||
[http://www.edivaldobrito.com.br/como-instalar-o-postgresql-9-4-no-ubuntu-e-centos/ source: Como instalar o PostgreSQL 9.4 no Ubuntu e CentOS, por Edivaldo Brito] | |||
== trocando a senha == | == trocando a senha == | ||
Edição das 14h41min de 16 de junho de 2015
instalando
apt-get install postgres
frontend
apt-get install pgadmin3
ubuntu 14.04 com 9.4
sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' >> /etc/apt/sources.list.d/pgdg.list" wget --q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get install postgresql-9.4
source: Como instalar o PostgreSQL 9.4 no Ubuntu e CentOS, por Edivaldo Brito
trocando a senha
# su - postgres
$ psql postgres
postgres=# alter user postgres with encrypted password 'sua-senha';
postgres=# \q