2012-03-28 18 views

答えて

0

grailsアプリケーションのデータベース(JDBC)設定をgrails-app/conf/DataSource.groovyに指定します。 Postgresデータベースの場合はあなたのような何かをしたいでしょう:

dataSource { 
    pooled = true 
    driverClassName = "org.postgresql.Driver" 
    username = "user1258361" 
    password = "lmgtfy" 
    url = "jdbc:postgresql:user1258361" 

    // one of 'create', 'create-drop','update' 
    // if you don't know what this does, find out now!!! 
    dbCreate = "update" 
} 
あなたは、私が

の上方に設けられてきたダミーの値については、実際のデータベースのURL、ユーザ名、パスワードを置き換える必要があります

関連する問題