
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 0.45 KB | hits: 35 | expires: Never
Configuring Grails application to use ClearDB/MySQL on Heroku
dataSource {
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
}
production {
dataSource {
dbCreate = "update"
uri = new URI(System.env.DATABASE_URL?:"mysql://99784530f103:934c2a0@server.cleardb.com/heroku_0ac7f6f45fa34")
url = "jdbc:mysql://"+uri.host+uri.path
username = uri.userInfo.split(":")[0]
password = uri.userInfo.split(":")[1]
}
}