Versions Compared

Key

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

All of Fedora's content and metadata are stored on disk in an OCFL storage root. For performance reasons, Fedora maintains a cache of system and user metadata in a rebuildable database. For quickly spinning up Fedora in a testing / experimental context, a default H2 database is available by default. However, for production installations, it is recommended to use a MariaDB,  MySQL or PostgreSQL database. Below are the steps to use MySQL or PostgreSQL, as well as Docker instructions if you choose to run your database in a Docker container.

Table of Contents

Docker-based Database Setup

...

Note, the fcrepo database must be manually created, but the tables will be automatically created.

Database

...

Initialization

MySQL and MariaDB

To create a new database and user in MySQL, assuming a username of user1 and a password of xyz:

...