Skip to content

Commit

Permalink
Merge pull request #563 from jgribonvald/doc-mariadb
Browse files Browse the repository at this point in the history
doc: update MariaDB doc
  • Loading branch information
jgribonvald authored Jun 13, 2022
2 parents ee565d3 + 46b309d commit 10e2921
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions docs/en/database/mariadb.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,14 @@ hibernate.connection.url=jdbc:mysql://localhost/portlets
hibernate.connection.username=uportal
hibernate.connection.password=uportal
hibernate.connection.validationQuery=select 1
hibernate.dialect = org.apereo.portal.utils.MySQL5InnoDBCompressedDialect
hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
```
You should copy/paste this configuration for each customized database portlet/uPortal context [see global datasource documentation](README.md#step-5-specific-portlet--uportal-database-configuration-optional)

**NOTE:** From mariaDB 10.1.35 using the Dialect `org.apereo.portal.utils.MySQL5InnoDBCompressedDialect` is not needed anymore if you configured your mariaDB server with the [default row_format](mariadb.md#step-1-mariadb-server-setup)
**NOTE:** Before mariaDB 10.1.35 using the Dialect `org.apereo.portal.utils.MySQL5InnoDBCompressedDialect` was needed if you didn't configured your mariaDB server with the [default row_format or equivalent](mariadb.md#step-1-mariadb-server-setup)

**NOTE:** Depending on the version of hibernate used and the version of the database server it may be necessary to select an appropriate Dialect [see here](https://github.com/hibernate/hibernate-orm/tree/main/hibernate-core/src/main/java/org/hibernate/dialect) (Be careful to select the correct version according to the tag)


## Step 4 : Initialization of the Database
```shell
Expand Down
6 changes: 4 additions & 2 deletions docs/fr/database/mariadb.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ hibernate.connection.url=jdbc:mysql://localhost/portlets
hibernate.connection.username=uportal
hibernate.connection.password=uportal
hibernate.connection.validationQuery=select 1
hibernate.dialect = org.apereo.portal.utils.MySQL5InnoDBCompressedDialect
hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
```

Vous devez copier/coller cette configuration pour chaque personnalisation d'accès à la base de données des contextes portlets / uPortal [cf configuration générale des bases de données](README.md#Étape-5-configuration-spécifique-portlet--uportal-optionel)

**NOTE:** Depuis mariaDB 10.1.35 utiliser le dialect `org.apereo.portal.utils.MySQL5InnoDBCompressedDialect` n'est plus nécessaire si vous avez configuré votre serveur mariDB avec le [row_format par défault](mariadb.md#Étape-1--paramétrage-du-server-mariadb)
**NOTE:** Avant mariaDB 10.1.35 il fallait utiliser le dialect `org.apereo.portal.utils.MySQL5InnoDBCompressedDialect` si vous n'aviez pas configuré votre serveur mariaDB avec le [row_format par défault ou équivalent](mariadb.md#Étape-1--paramétrage-du-server-mariadb).

**NOTE:** Selon la version d'hibernate utilisée et la version du serveur de données il peut être nécessaire de sélectionner un Dialect adéquat [voici où chercher](https://github.com/hibernate/hibernate-orm/tree/main/hibernate-core/src/main/java/org/hibernate/dialect) (Attention à sélectionner la bonne version en fonction du tag)


## Étape 4 : Initialisation de la Base de Donnée
Expand Down

0 comments on commit 10e2921

Please sign in to comment.