Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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:[email protected]/heroku_0ac7f6f45fa34")
- url = "jdbc:mysql://"+uri.host+uri.path
- username = uri.userInfo.split(":")[0]
- password = uri.userInfo.split(":")[1]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment