Search code examples
grailsderby

How to configure Grails to work with Apache Derby?


How to configure Grails to work with Apache Derby instead of HSQLDB


Solution

    1. Install the derby driver into the lib folder of your application.
    2. Configure the DataSource:

      driverClassName = "org.apache.derby.jdbc.ClientDriver"
      dbCreate = "create-drop"
      url = "jdbc:derby://localhost:1527/theDatabase"

    3. Start the derby server.

    4. Create the empty database (through ij or a graphical sql client).
    5. Start grails.