Home

Manual de instalación de PostgreSQL y PostGIS INDICE 1

image

Contents

1. Sitios recientes createdb exe acion f amp a SkyDrive createlang exe ci n 1 createuser exe 9 Grupo en el hogar 1 dropdb exe cion 1 droplang exe acion Este equipo dropuser exe JB Descargas OP ecpg exe F Documentos iconv dll de Escritorio OP initdb exe E Im genes isolationtester exe Mh M sica Yoo A ibCGAL all 71 elementos 1 elemento seleccionado 67 5 KB Ica ica icacion Ica Ica icacion icacion ensi n de la apl TP POPP DP DP DP PBI Copia esta ruta y abre la consola de MS2 Para ello localiza la aplicaci n CMD con el buscador de aplicaciones programas de Windows 8 Search Anns Apps Results for md EDET Apps ES Settings a Files Deberia abrirse una ventana de este tipo en la que por defecto estaras trabajando en el directorio de usuario de tu PC es decir en C Users Usuario Debemos entrar en la ruta que antes hemos comentado y para ello debes teclear la orden cd seguida de la ruta que antes has copiado p gala a continuaci n de cd EN S mbolo del sistema icrosoft Windows Versi n 6 3 7600 c 2613 Microsoft Corporation Todos los derechos reservados gt Wisers admin_tmp cd C Program Files PostqreS L 3 bin z5 Program Files PostqreSQL A A continuaci n se mostrar una l nea con el directorio en el que se encuentra el comando createdb C Program Files PostgreSQL 9 3 bin y solo resta ejecutar el comando h
2. S C Sistema de Informaci n Territorial da USC SIT SISTEMA DE INFORMACI N TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo DE SANTIAGO Telef 982 822 833 DE COMPOSTELA Manual de instalaci n de PostgreSQL y PostGIS Este manual pertenece al material docente del Master Universitario en Gesti n Sostenible de la Tierra y del Territorio 0 y en el se explica paso a paso C mo instalar en Windows el SGBD PostgreSQL y su extensi n geogr fica PostGIS Como ejecutar rdenes en l nea de comandos INDICE 1 Notas sobre la instalaci n de estas aplicaciOnNesS cccccoooccnnncnnnoncnnnnonanonnnnnnnnonnnonannnnnnnononnnnnnnnrnnnnonenancnnnnnns 1 2 mstalacion de Posteres Ol cessaret aa a oda 2 Cal Deca ade Postero OL psie E E RE I Ar a E TSAO Eie 2 ce listalacion aer Osteres iodo dla 2 INSTA CIN de POSO ici t0 4 4 Creaci n de nueva BD PostGIS desde linea de COMANDOS cccccccccconnocccnnnnnnnnnnnnannnnnnnononconnnnnnnonnnnnrnnnnnnnnnnnnos 7 4 1 Crear RA o ne 7 4 2 Abrir pgAdmin IIl ccccssecscccusesussevsssposcccausevssssarsusscccacceassuppoccausuesssseuceccaunepeccaasuesssesaursesurescecauanes 8 4 3 Crear utilidades PostGIS ss ida 9 o e o E E Eo A 10 1 Notas sobre la instalaci n de estas aplicaciones El manual se ha realizado para las versiones disponibles a fecha de octubre de 2014 PostgreSQL 9 3 5 1 y PostGIS 2 1 3 Para poder instalar PostgreSQL y PostGIS bajo Windows es necesar
3. OpenGIS Simple Features Specification for SQL and has been v lt Back Next gt Cancel Para ello vas a activar la casilla de PostGIS 2 1 Bundle for PostgreSQL 9 3 corresponden con los paquetes b sicos de PostGIS S Stack Builder 3 1 1 Review your selections and choose a download directory if required and then dick the Next button to begin downloading the packages you have selected Selected packages PostGIS 2 1 Bundle for PostgreSQL 9 3 64 bit v2 1 3 Download directory C Users ladmin_tmp lt Back Next gt Cancel Le indicas la ruta donde va a descargar el archivo correspondiente Deja por defecto y descarga el archivo postgis bundle pg93x64 setup 2 1 3 1 exe http sit lugo usc es situsc usc es S C Sistema de Informaci n Territorial da USC SIT SISTEMA DE INFORMACI N TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo UNIVERSIDADE DE SANTIAGO Telef 982 822 833 DE COMPOSTELA Stack Builder 3 1 1 amp PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set T Y o License Agreement Al the instalation fles have now been successfully downloaded Please review the license terms before instaling PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Please dick the Next button to start the installations Press Page Down lo ses the reat of the agreement GNU GENERAL PUBLIC LICENSE Note You must allow all installations to run to completion If y
4. de Datos E Program Files PostgreSQL Y 3 datal 6 E eN lt Atr s Siguiente gt Cancelar lt Atr s Siguiente gt Cancelar Ds LA Esta ser el directorio de instalaci n y el directorio de almacenamiento de los datos http sit lugo usc es situsc Dusc es S C SISTEMA DE INFORMACION TERRITORIAL SIT UNIVERSIDADE DE SANTIAGO DE COMPOSTELA A LAME See MEA asabccoc aasbeem AaRhC aanbce AAK PA de Instalaci n Contrase a i R F Por favor proporcione una contrase za para el superusuario base de datos postgres Contrase a e o Reingresar la contrase a eeeeee lt Atr s Siguiente gt Cancelar Sistema de Informaci n Territorial da USC SIT Edif CACTUS 2 planta Campus de Lugo Telef 982 822 833 A continuaci n tienes que dedicir y teclear una contrase a propia para el usuario postgres de la base de datos En nuestro caso vamos a introducir la contrase a postgres igual que el usuario Este password es importante porque es el que vamos a usar para poder conectarnos a la BD como usuarios t Instalaci n Puerto R Por favor seleccione un n mero de puerto en el que el servidor deber a escuchar Puerto 5432 lt Atr s Siguiente gt Cancelar Instalaci n a Es Opciones Avanzadas d Ro Seleccione la configuraci n regional a ser usada por el nuevo cluster de base de datos Configuraci n Regional Configuraci n Regional po
5. pregunta si se quieren registrar una serie de variable Haz clic en Si http sit lugo usc es situsc Dusc es S C SISTEMA DE INFORMACION TERRITORIAL SIT UNIVERSIDADE DE SANTIAGO DE COMPOSTELA YANES NTE ascos AaBECCDX AABbC AaBbCc MAD Aoabe PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set 7 o o Installing Please wait while PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 is being installed Create shortcut C ProgramData Microsoft Windows Start Menu Programs PostGIS 2 1 bund amp PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Setup hey Would you like us to register the GDAL_DATA environment variable for you needed for raster transformation to work properly This will overwrite existing settings if you have them Nullsoft Install System v2 46 lt Back Close ncel O oO PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set Y o Installing Q Please wait while PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 is being installed Create shortcut C ProgramData Microsoft Windows Start Menu Programs PostGIS 2 1 bund PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Setup Raster out of db is disabled by default To enable POSTGIS ENABLE OUTDB_RASTERS environment variable needs to be set to 1 Enable out db rasters Cs e Nullsoft Install System v2 46 lt Back Close Cancel 22 eee TE 2894 2 MA A es Sistema de Informaci n T
6. y que en nuestro caso es postgres Ver s que no aparece nada cuando tecleas el nombre pero internamente la reconoce Al cabo de unos segundos el resultado se mostrar en la pantalla 4 2 Abrir pgAdmin Ill Ya tienes creada la BD bd_nueva pero si quieres comprobarlo tendr s que ir al pgAdmin y comprobarlo pgAdmin es el programa para la administraci n de las bases de datos de PostgreSQL que se a ade cuando instalamos el PostgreSQL Inicio gt Programas gt PostgreSQL gt Ejecuta pgAdmin Ill Una vez abierto el pgAdmin III tienes que hacer clic dos veces en PostgreSQL 9 3 localhost 5432 ya que el servidor esta desconectado Te va a pedir la contrase a de postgres que es la misma de antes postgres Al teclear la contrase a se abre inmediatamente en la parte de abajo un arb l de informaci n entre los que vemos Databases 3 Si haces clic en la cruz a la izquierda ver s las BD creadas File Edit Plugins View Tools Help A a FA 4 iaa E id EI E a y PP so Properties Statistics Dependencies Depe E Server Groups gt 4 Servers 1 Property Value SFE PostgreSQL 9 3 localhost 5432 F Description PostgreSQL 9 Databases 3 ES service 8 bd_nueva F Hostname localhost pe 2 Host Address S ES Port 5432 1 1 Tablespaces 2 FS Service ID postgresql x64 212 Group Roles 0 a 41 1 Login Roles 1 F Maintenance database postgres F Username postgres FS Store password No ES Restore envir
7. d_nueva ontrase a para usuario postgres Al escribir la sentencia te va a pedir la contrase a igualmente A continuaci n empieza a ejecutar las instrucciones insertar los registros y finaliza Para comprobar que ahora est s en condiciones de incorporar datos espaciales a la tabla vuelve al pgAdmin lll refrescar la visualizaci n boton derecho en bd_nueva gt Refresh y ver s que existen mas datos en bd_nueva 1 tabla y 2 vistas http sit lugo usc es situsc usc es S C Sistema de Informaci n Territorial da USC SIT SISTEMA DE INFORMACI N TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo UNIVERSIDADE A DE SANTIAGO Telef 982 822 833 5 Bibliografia 0 Master en Gestion Sostenible de la Tierra y del Territorio http masterterra usc es drupal 1 createdb 9 3 http www postgresql org docs 9 3 static app createdb html 2 psql 9 3 http www postgresql org docs 9 3 static app psaql html htto sit lugo usc es 10 situsc usc es
8. ectly PostgreSQL Overview Installer version Version 9 3 5 1 Download PostgreSQL A Linux x86 32 A Linux x86 64 Am Win x86 32 Aw Win x86 64 e Mac OS X Supported Platforms and Release Lifecycles Installer version Version 9 2 9 1 Posigres Plus Cloud Database A Linux x86 32 A Linux x86 64 Au Win x86 32 Aw Win x86 64 e Mac OS X EnterpriseDB Tools Postgres Installer version Version 9 1 14 1 Enterprise Manager 9 A Linux x86 32 A Linux x86 64 Au Win x86 32 Qu Win x66 64 sl Mac OS X En dicha p gina selecciona la versi n de PostgreSQL actualmente 9 3 5 1 el sistema operativo y procesador que utilizas En nuestro caso estamos en Windows 8 y 64bits para ello descargamos Win x86 64 el archivo ejecutable postgresql 9 3 5 1 windows x64 exe 2 2 Instalaci n de PostgreSQL Vamos a instalar ahora la versi n de PostgreSQL 9 3 5 1 Para ello ejecuta el archivo descargado donde seguir s las siguientes ventanas dejando las opciones por defecto de directorio de instalaci n y almacenamiento de datos MIRAN OLE TIE EE ML abrir agote AaRbC AakhCc ADK a 1T ADEE Aahe l Aabe AaRbC AaRh Ac ARI Aa 17A a Instalaci n 5 E ide Instalaci n 8 E Directorio de instalaci n i Re Directorio de Datos i Rea S A Por favor especifique el directorio donde PostgreSQL ser instalado Por favor seleccionar un directorio dentro del cual se almacenar n sus datos Directorio de instalaci n en Program Files PostgreSQUI9 3 6 Directorio
9. erritorial da USC SIT Edif CACTUS 2 planta Campus de Lugo Telef 982 822 833 40 PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set I Y o Installing O Please wait while PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 is being installed Create shortcut C ProgramData Microsoft Windows Start Menu Programs PostGIS 2 1 bund PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Setup Raster drivers are disabled by default To change you need to set POSTGIS_GDAL_ENABLED_DRIVERS environment variable and will need to restart your PostgreSQL service for changes to take effect Set POSTGIS_ENABLED_DRIVERS to common drivers GTiff PNG JPEG XYZ DTED USGSDEM AAIGrid ji wm Nullsoft Install System v2 46 lt Back Close Cancel PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set P ER o hitalldiion Complete o Setup was completed successfully Completed Show details Nullsoft Install System v2 46 lt Back Cancel Unha vez concluida la instalaci n del software PostGIS 2 1 3 cierra el men en Close y termina el proceso en Finish EI A ee FIA A a a dd A TRUE TRUY SOUS ESS SOU s Stack Builder 3 1 1 Installation Completed Installation of the packages you selected has finished The downloaded files have been retained to allow future installations or upgrades some packages require the You may run this wizard again at any time to add to or upgrade the
10. io descargar por separado los archivos ejecutables en las p ginas correspondientes en web y aqu se indican los pasos de instalaci n en un sistema operativo Windows 8 y procesador de 64bits Para la instalaci n de dichos productos en otro sistema operativo se podr encontrar m s informaci n en los sitios web oficiales http www postgresql org y http www postgis org respectivamente Este Manual de instalaci n de PostgreSQL PostGIS elaborado por el SIT se publica bajo una licencia Creative Commons Reconocimiento Compartirlgual 4 0 Internacional Se puede consultar una versi n reducida de esta licencia en http creativecommons org licenses by sa 4 0 deed es ES http sit lugo usc es situsc usc es S C Sistema de Informacion Territorial da USC SIT SISTEMA DE INFORMACION TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo DE SANTIAGO Telef 982 822 833 DE COMPOSTELA 2 Instalaci n de PostgreSQL 2 1 Descarga de PostgreSQL Descarga el instalador del programa de la p gina de EnterpriseDB http www enterprisedb com products services training pgdownload _ 0000 LEE 1781 357 23900 aa ENTERPRISED Products Services Training Solutions Success Stories Resources Partner Programs About Us You are here Home Products PostgreSQL Overview Download PostgreSQL suse Download PostgreSQL Postgres Plus Advanced Server Please Note Cookies should be enabled for the download process to function corr
11. nstall Posters ay am are Y Create spatial database sg Meee Sn see its des ripti r Destination Folder Program Files PostgreSOL 9 3 Browse Space required 104 1MB Space required 104 1MB a z Space available 397 7GB Nullsoft Install Syste lt Back Cancel Nullsoft Install System v2 46 lt Back Next gt Cancel En esta ventana haz clic en la opci n Create spatial database para que ya cree en tu SGBD de postgres una BD con referencia espacial sistema de coordenadas A continuaci n le indicas la localizaci n donde tiene que instalar el PostGIS 2 1 3 que si te fijas corresponde con la carpeta de PostgreSQL PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set u 9 al N pa a y En fy th fth datab b d at th i i A Speci e name of the spatial database to be created at the 0 diaria 5 0 end of the installation process Spatial Database Information Database Connection Information Database Name User Name postgres mtt Posies aman Port 5432 lt Back Cancel lt Back Install Cancel Para conectarse al SGBD y crear la BD te pide la contrase a del usuario postgres Si te acuerdas hab amos puesto tambi n postgres En el siguien men se indica el nombre que quieres para tu base de datos como ejemplo nosotros hemos puesto mtt y continuamos la instalaci n A continuaci n aparecen tres pantallas donde
12. ntrib postgis 2 1 postgis sql d bd_nueva En este caso la primera parte es el ejecutable la segunda U es el usuario de postgres para acceder al SGBD la tercera f es la localizaci n del archivo sql a ejecutar y la cuarta d es la base de datos donde se tiene que operar Escribe la orden con cuidado cercior ndote que est n bien escritos los operadores con sus espacios EM simbolo del sistema psql exe U postgres f C Program Files PostgreSQL 9 7 a A EA E EAS AS E U postgres E C Program Files Po tqreSQL9 S share contribs postgis 2 1 postgis sql d bd_nueva ontrase a para usuario postgres Al escribir la sentencia te va a pedir la contrase a igualmente A continuaci n empieza a ejecutar las instrucciones y finaliza Repite lo mismo para spatial_ref_sys sal psql exe U postgres f C Program Files PostgresSQL 9 3 share contrib postgis 2 1 spatial_ref_sys sql d bd_nueva EN S mbolo del sistema psql exe U postgres f C Program Files PostgreSQL 9 7 Ea REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION REATE FUNCTION NT Program Files PostgreSQL 3 bin gt psql exe U postgres f C Program Files Po tgreSQL 3 share contrib postgis 2 1 spatial_ref_sys sql d b
13. onment No FS Version string PostgreSQL 9 Version number 9 3 FSI act evetam NIM 17074 Son tres BD creadas bd_nueva que es la que hemos creado ahora mtt que se creo al realizar la instalacion de PostGIS y postgres que es interna del programa PFRI Observa por un momento las diferencias en la estructura de las BD bd_nueva y mtt Para ello entra en cada una de las BD y comprueba el n mero de tablas y vistas en Schemas gt Public Ver s que bd_nueva tiene O Tables y O Views sin embargo mtt tiene 1 Table Spatial ref_sys y 2 Views geography_columns y geometry_columns http sit lugo usc es situsc usc es S C Sistema de Informaci n Territorial da USC SIT SISTEMA DE INFORMACI N TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo UNIVERSIDADE DE SANTIAGO Telef 982 822 833 DE COMPOSTELA La diferencia es debido a que bd_nueva no lleva incorporada las utilidades de PostGIS para incluir elementos espaciales 4 3 Crear utilidades PostGIS Para que la bd_nueva pueda almacenar datos espaciales debe incorporar las tablas correspondientes de PostGIS en su base de datos Para ello se tienen que buscar dos archivos sql en la carpeta de PostGIS que se tienen que ejecutar postgis sql y spatial_ref_sys sq l Para poder ejecutar un archivo sql en CMD de Windows se tiene que emplear el ejecutable psql exe 2 As escribe en CMD psql exe U postgres f C Program Files PostgresSQL 9 3 share co
14. ou are prompted to Version 2 June 1991 restart the computer click No or Restart Later and manually restart your computer when all the installation have finished Copyright C 1989 1991 Free Software Foundation Inc 59 Temple Place Suite 330 Boston MA 02111 1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document but changing itis not allowed Preamble The licenses for most software are designed to take away your v If you accept the terms of the agreement dick I Agree to continue You must accept the agreement to install PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Nullsoft Install System v2 46 cok wea ona ca a A continuaci n procedes a instalar el software PostGIS 2 1 3 y a continuaci n acepta la licencia PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set 5 a r 3 PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 Set EE 49 Choose which features of PostGIS 2 1 3 PgRouting 2 0 for o E A T r sharin AA Choose the folder in which to install PostGIS 2 1 3 PgRouting 2 0 i for PostgreSQL x64 9 3 Check the components you want to install and uncheck the components you don t want to ee a E Setup will install PostGIS 2 1 3 PgRouting 2 0 for PostgreSQL x64 9 3 in the following folder To install in a different folder dick Browse and select another folder Click Next to continue Select components to i
15. r defe lt Atr s Siguiente gt Cancelar A continuaci n dejas por defecto el puerto de conexi n de PostgreSQL 5432 y la configuraci n regional 4 MIA OLE TIE AIRE Aahe l Aagot AaRbC AaRhCe ARI de Instalaci n 5 a Listo para Instalar y y m El programa est listo para iniciar la instalaci n de PostgreSQL en su ordenador lt Atr s Siguiente gt Cancelar a EN Instalaci n Terminada la instalaci n de PostgreSQL El programa termin la instalaci n de PostgreSQL en su ordenador Lanzar Stack Builder al finalizar M Stack Builder puede ser usuado para descargar e instalar herramientas adicionales controladores y aplicaciones para complementar la instalaci n de PostgreSQL Packaged by EDB ENTERPRISEDB Terminar Cancelar Una vez que ya has configurado las opciones de instalaci n le das a siguiente y empieza a instalar el programa htip sit lugo usc es situSC usc es S C Sistema de Informaci n Territorial da USC SIT SISTEMA DE INFORMACI N TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo DE SANTIAGO Telef 982 822 833 DE COMPOSTELA 3 Instalaci n de PostGIS Despues de instalar PostgreSQL nos pide a adir Stack Builder que es el instalador disponible de PostgreSQL PostGIS para Windows Lanza la instalaci n de este programa que lleva incorporado una serie de paquetes de instalaci n entre los que se encuentran unos paquetes simples de Po
16. software in your stack If you wish to remove any software please use the Add Remove Programs Control Panel applet http sit lugo usc es situsc Dusc es S C Sistema de Informaci n Territorial da USC SIT SISTEMA DE INFORMACI N TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo UNIVERSIDADE DE SANTIAGO Telef 982 822 833 DE COMPOSTELA 4 Creaci n de nueva BD PostGIS desde linea de comandos Cuando ya tenemos instalado PostgreSQL 9 3 en nuestro caso y PostGIS 2 1 en nuestro caso tenemos a nuestra disposici n una serie de comandos para la creaci n de base de datos Como ejemplo en este apartado se va a crear una base de datos que incorpore la referencia espacial mediante ejecuci n de comandos empleando la consola CMD de Windows 4 1 Crear BD PostgreSQL El primero de los comandos que ejecutaremos sera createdb 1 Este comando sirve para crear una base de datos en postgres directamente Para ello primeramente observamos donde esta situado el ejecutable en Windows para poder lanzarlo desde la consola de MS2 de nuestro equipo Esta situado en C Program Files PostgreSQL 9 3 bin createdb exe de ff e Herramientas de aplicaci n Inicio Compartir Vista Administrar PL Windows C Program Files PostgreSQL 9 3 bin z EN Nombre Fecha de modifica DO Tamano Rt Favoritos de Descargas de postgisgui 08 10 2014 19 0 Carpeta de archivos B Escritorio clusterdb exe olicaci n
17. stGIS Debes saber que StackBuilder trae incorporada una versi n de PostGIS que bien podr a no ser la ltima de este m dulo pero este desfase temporal es habitual entre la salida de los binarios y la creaci n de los isntaladores En este caso vamos a obviar este hecho y trabajar con esta versi n sea o no la ltima e instalar el paquete de PostGIS 2 1 para PostgreSQL 9 3 que hemos incorporado previamente Stack Builder 3 1 1 Welcome to Stack Builder This wizard will help you install additional software to complement your PostgreSQL or EnterpriseDB Postgres Plus installation To begin please select the installation you are installing software for from the list below Your computer must be connected to the Internet before proceeding PostgreSQL 9 3 x64 on port 5432 v Proxy servers lt Back Next gt Cancel Stack Builder 3 1 1 Please select the applications you would like to install Categories H B Add ons tools and utilities e Database Drivers B Database Server B Registration equired and trial products e Replication Solutions e Spatial Extensions 7 PostGIS 2 1 Bundle for PostgreSQL 9 3 32 bit v2 1 3 Y PostGIS 2 1 Bundle for PostgreSQL 9 3 64 bit v2 1 3 Web Development 0 0 0 0 0 0 PostGIS spatially enables the PostgreSQL server allowing it to be usedasa A backend spatial database for geographic information systems GIS PostGIS follows the
18. ttp sit lugo usc es situsc usc es S C Sistema de Informaci n Territorial da USC SIT SISTEMA DE INFORMACI N TERRITORIAL SIT Edif CACTUS 2 planta Campus de Lugo UNIVERSIDADE DE SANTIAGO Telef 982 822 833 DE COMPOSTELA Para ello necesitar s una sentencia de este tipo en la que se indican los par metros o variables de nuestra base de datos Dicha orden est compuesta por las siguientes partes en las que en negrita est el nombre de cada par metro y en cursiva el valor del mismo en nuestro caso Createdb exe U postgres E UTF8 T templateO bd_nueva La primera parte es el ejecutable la segunda U es el usuario de postgres para acceder al SGBD la tercera E es tipo de codificaci n de caracteres la cuarta T es la plantilla base por la cual se va a crear la base de datos y por ltimo es el nombre de la BD que vamos a crear Vamos a ejecutarlo en CMD Tienes que escribir lo mismo cercior ndote que est n bien escritos los operadores con sus espacios EX Simbolo del sistema 0 icrosoft Windows Versi n 6 3 9600 fc 2813 Microsoft Corporation Todos los derechos reservados gt Users admin_tmp cd Ci Program Files PostgqreSQ L _3 bin Program Files PostqreSQL 9 3bin createdhb exe U postgres E UTFS TI template bd_nueva Cuando termines de escribir la sentencia pulsa Enter para ejecutar la orden Tendr s que teclear la contrase a de postgres que hemos indicado en la instalaci n

Download Pdf Manuals

image

Related Search

Related Contents

User Manual - International Catering Equipment    Manual 4028-4029  PicaLoader User`s Manual  User Manual VizTracker  Carbon Black—Total and External Surface Area by Nitrogen  Owner's Manual 取扱説明書 Bedienungsanleitung Mode d'emploi  Dimenco Control Tool – User Manual  humiFog- UA    

Copyright © All rights reserved.
Failed to retrieve file