Guest User

Untitled

a guest
May 5th, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Configuring Grails application to use ClearDB/MySQL on Heroku
  2. dataSource {
  3. pooled = true
  4. driverClassName = "com.mysql.jdbc.Driver"
  5. }
  6.  
  7. production {
  8. dataSource {
  9. dbCreate = "update"
  10. uri = new URI(System.env.DATABASE_URL?:"mysql://99784530f103:[email protected]/heroku_0ac7f6f45fa34")
  11. url = "jdbc:mysql://"+uri.host+uri.path
  12. username = uri.userInfo.split(":")[0]
  13. password = uri.userInfo.split(":")[1]
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment