Skip to main content

Posts

Showing posts with the label postgreSQL

Como usar PostgreSQL 9.3 y Grails 2.3.5 (Integrar)

Hola mundo, a continuacion los pasos a seguir:   1. Descargar JDBC de PostgreSQL(http://jdbc.postgresql.org/download.html#current) 2. Copiar ese archivo en la carpeta lib de nuestro Proyecto Grails 3. Despues de ejecutar run-app, abrir el "localhost:8080/Proyecto/dbconsole" y hacer prueba de conexión (Test Connection) con:   Driver Class: org.postgresql.Driver JDBC URL: jdbc:postgresql:strategy   //strategy es mi base de datos User Name:  postgres Password: postgres 4. En el DataSource.groovy añadir las líneas en Negritas:    dataSource {     pooled = true     driverClassName = "org.postgresql.Driver"     dialect = "org.hibernate.dialect.PostgreSQLDialect"     username = "postgres"     password = "" } // environment specific settings environments {     development {         dataSource {  ...