nextcloud.yml
... services: db: image: mariadb:10.10.2 ...
docker-compose -f nextcloud.yml ps docker-compose -f nextcloud.yml down ; docker-compose -f nextcloud.yml up -d --build --force-recreate; docker-compose -f nextcloud.yml ps docker-compose -f nextcloud.yml logs --follow
Got errors
db_1 | 2022-11-20 1:19:04 38 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB'). db_1 | 2022-11-20 1:19:04 38 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255). db_1 | 2022-11-20 1:19:04 38 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB'). db_1 | 2022-11-20 1:19:04 38 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).
docker exec -it root_db_1 bash
mysql_upgrade --user=root --password=dbpassword