Bladeren bron

Merge pull request #1400 from vmassol/patch-6

[Misc] Update for MySQL 5.5
yosifkit 7 jaren geleden
bovenliggende
commit
dbec688f31
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      xwiki/content.md

+ 6 - 0
xwiki/content.md

@@ -54,6 +54,12 @@ docker run --net=xwiki-nw --name mysql-xwiki -v /my/own/mysql:/var/lib/mysql -e
 
 
 You should adapt the command line to use the passwords that you wish for the MySQL root password and for the xwiki user password.
 You should adapt the command line to use the passwords that you wish for the MySQL root password and for the xwiki user password.
 
 
+Note: The `explicit-defaults-for-timestamp` parameter was introduced in MySQL 5.6.6 and will thus work only for that version and beyond. If you are using an older MySQL version, please use the following instead:
+
+```console
+docker run --net=xwiki-nw --name mysql-xwiki -v /my/own/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e MYSQL_DATABASE=xwiki -d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_bin
+```
+
 #### Starting PostgreSQL
 #### Starting PostgreSQL
 
 
 The command below will also configure the PostgreSQL container to save its data on your localhost in a `/my/own/postgres` directory:
 The command below will also configure the PostgreSQL container to save its data on your localhost in a `/my/own/postgres` directory: