Ir al contenido principal

Configurar PostgreSQL 8.4

Siempre me olvido como comenzar las configuraciones de algunos servicios en linux, bueno ME CANSE.


Lo anotaré ACÁ, para que sea ÚTIL a TODOS.  (incluyéndome a mi)  Vamos con el servicio de Base de Datos:  PostgreSQL 8.4 

PRE-REQUISITOS:

-Instalar en Ubuntu los paquetes de Postgres SQL 8.4  (o la version que mas os guste)
-Instalar PgAdmin III  (Administrador de Postgres con interface grafica)

Opcional :  instalar phppgadmin : Administrador de Postgres a traves de un Web Server, local. (Necesitaran tener Apache Server instalado)

0.-Ejecutar una TERMINAL (Consola)
Aplicaciones > Accesorios > Terminal y pulsamos sobre el icono:


1.-Ver si esta funcionando Postgres:    
ps auxw | grep postgre

2.-Cambiar contraseña usuario Postgres: 
sudo su postgres -c "psql template1"  (Presionar ENTER)
(Solicitara contraseña para hacer SUDO)

3.-Aparecera:
template1=# (Prompt de la consola de la Base de Datos)

Debera escribir lo siguiente:

template1=#ALTER USER postgres WITH PASSWORD 'sucontraseñaFavorita';  (Presionar ENTER)
ALTER ROLE

template1=#\q  (Nos saca de la consola de la Base de Datos)

4.-Configurar Base de Datos para recibir consultas desde otros equipos (RED)
sudo gedit /etc/postgresql/8.4/main/postgresql.conf  (Presionar ENTER)
(Solicitara contraseña para hacer SUDO)

Buscar en el archivo de configuración:
#listen_addresses = 'localhost'

a)Quitar #. Esto habilitara esta linea de configuración.
b)Reemplazar 'localhost' por '*'. Servirá para que Postres "escuche" las solicitudes de RED de 
todas las direcciones posibles. 

La linea quedaria: listen_addresses = '*'

Buscar en el archivo de configuración:
#password_encryption = on 

a)Quitar #. Esto habilitara esta linea de configuración.


Guarda los Cambios y sal del gedit!!

5.-Arrancar Nuevamente el Servidor de Postgres SQL 8.4

sudo /etc/init.d/postgresql restart  (Presionar ENTER)
(Solicitara contraseña para hacer SUDO)

Aparecerá un mensaje informando del Arranque de Postgres SQL 8.4

6.-A DESARROLLAR SE HA DICHO!!!  ;-)

IMPORTANTE
Tener en cuenta que este ejemplo esta realizado con la version 8.4 de Postres, pero solo deberan 
reemplazar el numero de la version en el directorio para accederlo, sino fuera "8.4".



Comentarios

Entradas más populares de este blog

Warp 11

Cuando pense que todo sobre Star Trek, podria estar cubierto, me encontre con esta banda de lunaticos llamados Warp 11, y su Capitan Karl. Miren la opiniones en EEUU: "Warp 11 is one of the best bands in America, not since KISS has a band had this level of shtick, and an amazing sound backing it up." - Mark S. Allen Premiere Radio Networks "Warp 11 is a Trek band that has crossed over from fandom to mainstream music." - Tammy Oler Geek Monthly "This isn't a bunch of Trekkies who decided to rock, but rather it's a buncha rockers who dediced the world of Star Trek was ripe with rockin' potential.. Warp 11 doesn't let any joke get by.. they're so gloriously vulgar!" - Jerry Perry Alive & Kicking "Sactown's own Warp 11 are the bad boys at the Trekkie convention." - Justin Allen Sacramento News & Review "It's Dead, Jim - a typically ass-kicking release from the Warped ones." - A.L. Sirois Sci Fi Channe...

Free as in Freedom

Free as in Freedom interweaves biographical snapshots of GNU project founder Richard Stallman with the political, social and economic history of the free software movement. It examines Stallman's unique personality and how that personality has been at turns a driving force and a drawback in terms of the movement's overall success. Free as in Freedom examines one man's 20-year attempt to codify and communicate the ethics of 1970s era "hacking" culture in such a way that later generations might easily share and build upon the knowledge of their computing forebears. The book documents Stallman's personal evolution from teenage misfit to prescient adult hacker to political leader and examines how that evolution has shaped the free software movement. Like Alan Greenspan in the financial sector, Richard Stallman has assumed the role of tribal elder within the hacking community, a community that bills itself as anarchic and averse to central leadership or authority...

Como recupero un Pen Drive que use para instalar OS X?

How do I format a usb drive on a PC that was formatted on a Mac? (source) Assuming Windows 7 and that the disk is not showing up under My Computer at all: Connect your disk. Run cmd as an Administrator. Run diskpart.exe . Use ? if you need help in this program. list disk Find the disk that corresponds to your USB disk. select disk n where n is the number of the disk. Confirm that you're using the right disk with detail disk . clean (Warning: This command erases the disk's partition information. Any data on the disk will no longer be accessible.) create partition primary . No size is needed if you want to use the whole disk active . Optional. Marks the partition as potentially bootable. format fs=fat32 quick . You can choose NTFS or exFAT instead of FAT32 if you want. assign . Assigns the disk a drive letter. exit to quit. LEER BIEN los pasos y comprender que lo hace BAJO su Responsabilidad. Sino esta seguro, NO ...