wiki:ChangingTheDatabase

Version 4 (modified by Gavin, 14 years ago) (diff)

--

Changing the Database

To change the database used by gnuMims a custom WAR must be built from the source code.

  • Perform an anonymous checkout.
  • Change grails-app/conf/DataSource.groovy file to suite.
  • Build your custom war with "grails war" command.

Most common databases are supported by Grails (via Hibernate), we test and run MySQL (InnoDB).
The database must support transactions and row locking.
A jar matching the configuration needs to be placed in the projects lib dir (e.g. lib/mysql-connector-java-5.1.7-bin.jar Connector)

See the DeveloperStartPage and Grails documentation.