dataSource {
pooled = true
driverClassName = "com.MysqL.jdbc.Driver"
username = "root"
password = "MysqL"
//logsql=true
}
hibernate {
cache.use_second_level_cache=true
cache.use_query_cache=true
cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider'
//cache.provider_class='org.hibernate.cache.EhCacheProvider'
}
// environment specific settings
environments {
development {
dataSource {
dbCreate = "update" // one of 'create','create-drop','update'
url = "jdbc:MysqL://localhost:3306/GDepot_dev"
}
}
test {
dataSource {
dbCreate = "update"
url = "jdbc:MysqL://localhost:3306/GDepot_test"
}
}
production {
dataSource {
dbCreate = "update"
url = "jdbc:MysqL://localhost:3306/GDepot_dev"
}
}
}
grails框架 数据源
MysqL