Skip to content
Snippets Groups Projects
Commit 7f43be68 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Upgrade MariaDB version to 11.1 (latest stable) in our documentation +...

[Misc] Upgrade MariaDB version to 11.1 (latest stable) in our documentation + docker compose example
parent 511b746c
No related branches found
No related tags found
No related merge requests found
......@@ -120,12 +120,12 @@ Notes:
#### Starting MariaDB
This is exactly similar to starting MySQL and you should thus follow exactly the same steps as for MySQL. The only thing to change is the docker image for MariaDB: instead of `mysql:<tag>`, use `mariadb:<tag>`. For example: `mariadb:10.5`.
This is exactly similar to starting MySQL and you should thus follow exactly the same steps as for MySQL. The only thing to change is the docker image for MariaDB: instead of `mysql:<tag>`, use `mariadb:<tag>`. For example: `mariadb:11.1`.
Full command example:
```console
docker run --net=xwiki-nw --name mysql-xwiki -v /my/path/mariadb:/var/lib/mysql -v /my/path/mariadb-init:/docker-entrypoint-initdb.d -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e MYSQL_DATABASE=xwiki -d mariadb:10.5 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --explicit-defaults-for-timestamp=1
docker run --net=xwiki-nw --name mysql-xwiki -v /my/path/mariadb:/var/lib/mysql -v /my/path/mariadb-init:/docker-entrypoint-initdb.d -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e MYSQL_DATABASE=xwiki -d mariadb:11.1 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --explicit-defaults-for-timestamp=1
```
#### Starting PostgreSQL
......@@ -266,7 +266,7 @@ services:
networks:
- bridge
db:
image: "mariadb:10.5"
image: "mariadb:11.1"
container_name: xwiki-mariadb-db
volumes:
- ./xwiki.cnf:/etc/mysql/conf.d/xwiki.cnf
......
......@@ -67,7 +67,7 @@ services:
- MYSQL_PASSWORD=\${DB_PASSWORD}
- MYSQL_DATABASE=\${DB_DATABASE}'''
else if (db == 'mariadb') print '''image: "mariadb:10.5"
else if (db == 'mariadb') print '''image: "mariadb:11.1"
container_name: xwiki-mariadb-db
# - We provide a xwiki.cnf file in order to configure the mysql db to support UTF8 and be case-insensitive
# We have to do it here since we use an existing image and that's how this image allows customizations.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.