Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For quickly spinning up Fedora in a testing / experimental context, a default H2 database is available by default.

Expand
titleClick here for instructions to connect to H2...

You can connect to the H2 database by:

  1. Downloading a copy of h2 (needs to match the version used by the version of fedora that you're using, which is 2.1.210 for the latest release): https://mvnrepository.com/artifact/com.h2database/h2/2.1.210
  2. Launch the h2 web console (this should open a webpage in your browser):

    Code Block
    java -jar h2-2.1.210.jar


  3. Open the db by specifying the jdbc url, for example jdbc:h2:/home/jdoe/Downloads/fcrepo/fcrepo-home/data/fcrepo-h2.
    When you start fedora, there should be a log line like 

    Code Block
    INFO 15:48:22.039 [main] (DatabaseConfig) JDBC URL: jdbc:h2:/Users/psmith/www/fcrepo/ocfl_temp/data/fcrepo-h2;FILE_LOCK=SOCKET


    Copy the value from there.

  4. Remove the default user name
  5. Click "connect"

Note, you can't have fedora running when you connect to the db.

...