50
Aplicaciones > Accesorios > Terminal de <<Root>>

Instalacion Postgres

  • Upload
    ragmyl

  • View
    2.913

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Instalacion Postgres

Aplicaciones > Accesorios > Terminal de <<Root>>

Page 2: Instalacion Postgres

Contraseña Administrativa

Page 3: Instalacion Postgres
Page 4: Instalacion Postgres
Page 5: Instalacion Postgres
Page 6: Instalacion Postgres

aptitude search postgres (busca todos los paquetes que tenga relación con la palabra postgres)

Page 7: Instalacion Postgres
Page 8: Instalacion Postgres

aptitude install postgresql-8.3 postgresql-client

Page 9: Instalacion Postgres
Page 10: Instalacion Postgres
Page 11: Instalacion Postgres
Page 12: Instalacion Postgres

sudo passwd postgres (actualización de la contraseña del postgres)

Page 13: Instalacion Postgres
Page 14: Instalacion Postgres

sudo su postgres -c "psql template1" (Entrada via consola al postgres)

Page 15: Instalacion Postgres
Page 16: Instalacion Postgres

ALTER USER postgres WITH PASSWORD 'nueva_contraseña'; (cambiamos la contraseña del usuario postgres)

Page 17: Instalacion Postgres

\q (comando para salir del postgres)

Page 18: Instalacion Postgres

sudo gedit /etc/postgresql/8.3/main/postgresql.conf (editamos el archivo de configuración)

Page 19: Instalacion Postgres
Page 20: Instalacion Postgres
Page 21: Instalacion Postgres

listen_addresses = '*' (Descomentamos la linea y colocamos *

para recibir conexiones externas)

Page 22: Instalacion Postgres
Page 23: Instalacion Postgres

password_encryption = on (Descomentamos y

guardamos)

Page 24: Instalacion Postgres

/etc/init.d/postgresql-8.3 restart (Reiniciamos el servidor postgres)

Page 25: Instalacion Postgres
Page 26: Instalacion Postgres

su postgres -c "psql template1"

Page 27: Instalacion Postgres

\l (muestra la lista de bases de datos)

Page 28: Instalacion Postgres
Page 29: Instalacion Postgres

aptitude install php5-pgsql

Page 30: Instalacion Postgres
Page 31: Instalacion Postgres

/etc/init.d/apache2 restart (Reiniciamos el servidor Apache)

Page 32: Instalacion Postgres

Entramos Navegador

Page 33: Instalacion Postgres

http://phppgadmin.sourceforge.net/

Page 34: Instalacion Postgres

Download

Page 35: Instalacion Postgres

(Se descarga el archivo)

Page 36: Instalacion Postgres

Se descomprime

Page 37: Instalacion Postgres

Se mueve a la carpeta de /var/www/

Page 38: Instalacion Postgres

gedit /var/www/phpPgAdmin-4.2.2/conf/config.inc.php

Page 39: Instalacion Postgres
Page 40: Instalacion Postgres
Page 41: Instalacion Postgres

cambiamos md5 por trust

Page 42: Instalacion Postgres

gedit /etc/postgresql/8.3/main/postgresql.conf

Page 43: Instalacion Postgres
Page 44: Instalacion Postgres

$conf[‘extra_login_security’]=true;

Page 45: Instalacion Postgres

$conf[‘extra_login_security’]=false;

Page 46: Instalacion Postgres

$conf[‘servers’][0][‘host’]= ‘’;

Page 47: Instalacion Postgres

$conf[‘servers’][0][‘host’]= ‘localhost’;

Page 48: Instalacion Postgres

Entramos al phpPgAdmin

Page 49: Instalacion Postgres

logearse con el usuario de postgres

Page 50: Instalacion Postgres