Changeset 40 for trunk/grails-app/conf/DataSource.groovy
- Timestamp:
- Oct 29, 2009, 5:46:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/DataSource.groovy
r16 r40 12 12 // environment specific settings 13 13 environments { 14 14 development { 15 15 dataSource { 16 16 dbCreate = "create-drop" // one of 'create', 'create-drop','update' … … 18 18 } 19 19 } 20 20 test { 21 21 dataSource { 22 22 dbCreate = "update" … … 26 26 production { 27 27 dataSource { 28 dbCreate = "update" 29 url = "jdbc:hsqldb:file:prodDb;shutdown=true" 28 // create a database first called gscf, add a user nmc with password nmcdsp and grant him all rights to nmc_dsp_tno 29 // $ mysql --user=root 30 // mysql> create database nmc_dsp_tno; 31 // mysql> use nmc_dsp_tno; 32 // mysql> grant all on nmc_dsp_tno.* to nmc@localhost identified by 'nmcdsp'; 33 // mysql> flush privileges; 34 // mysql> exit 35 // $ mysql --user=nmc -p --database=nmc_dsp_tno 36 37 driverClassName = "com.mysql.jdbc.Driver" 38 dbCreate = "update" 39 username = "gscf" 40 password = "dbnp" 41 url = "jdbc:mysql://localhost/gscf" 42 43 //dbCreate = "update" 44 //url = "jdbc:hsqldb:file:prodDb;shutdown=true" 30 45 } 31 46 }
Note: See TracChangeset
for help on using the changeset viewer.