Last change
on this file since 41 was
40,
checked in by keesvb, 13 years ago
|
changed study and experiment schema, added mysql production database
|
-
Property svn:keywords set to
Date Author Rev
|
File size:
1.5 KB
|
Line | |
---|
1 | dataSource { |
---|
2 | pooled = true |
---|
3 | driverClassName = "org.hsqldb.jdbcDriver" |
---|
4 | username = "sa" |
---|
5 | password = "" |
---|
6 | } |
---|
7 | hibernate { |
---|
8 | cache.use_second_level_cache=true |
---|
9 | cache.use_query_cache=true |
---|
10 | cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider' |
---|
11 | } |
---|
12 | // environment specific settings |
---|
13 | environments { |
---|
14 | development { |
---|
15 | dataSource { |
---|
16 | dbCreate = "create-drop" // one of 'create', 'create-drop','update' |
---|
17 | url = "jdbc:hsqldb:mem:devDB" |
---|
18 | } |
---|
19 | } |
---|
20 | test { |
---|
21 | dataSource { |
---|
22 | dbCreate = "update" |
---|
23 | url = "jdbc:hsqldb:mem:testDb" |
---|
24 | } |
---|
25 | } |
---|
26 | production { |
---|
27 | dataSource { |
---|
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" |
---|
45 | } |
---|
46 | } |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.