Date: Thu, 28 Mar 2024 11:20:17 -0400 (EDT) Message-ID: <1628386842.27976.1711639217255@lyrasis1-roc-mp1> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_27975_1061032918.1711639217255" ------=_Part_27975_1061032918.1711639217255 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
By default, Fedora comes configured to write binary resources (i= .e. files) to the file system and RDF resources (i.e. objects) to a LevelDB= database. It is often desirable to replace the LevelDB database with a dif= ferent object store. As of 2016-03-04, the configuration for MySQL or Postg= reSQL databases are available within the deployable Fedora war file. = Below are the steps to use MySQL or PostgreSQL instead of LevelDB.
Run Fedora with the following JAVA_OPTS
:
JAVA_OP= TS=3D"${JAVA_OPTS} -Dfcrepo.modeshape.configuration=3Dclasspath:/config/jdb= c-mysql/repository.json" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.mysql.username=3D<username>" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.mysql.password=3D<password>" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.mysql.host=3D<default=3Dlocalhos= t>" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.mysql.port=3D<default=3D3306>= "
Note, the database and table used by ISPN are auto-created.
ispn
and a=
user account that can access itJAVA_OPTS
:JAVA_OP= TS=3D"${JAVA_OPTS} -Dfcrepo.modeshape.configuration=3Dclasspath:/config/jdb= c-postgresql/repository.json" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.postgresql.username=3D<username&= gt;" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.postgresql.password=3D<password&= gt;" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.postgresql.host=3D<default=3Dloc= alhost>" JAVA_OPTS=3D"${JAVA_OPTS} -Dfcrepo.ispn.postgresql.port=3D<default=3D543= 2>"
Note, the ispn
database must be manually =
created, but the tables will be automatically created.