This commit is contained in:
Christoph 2021-10-02 10:55:42 +02:00
commit 700a993c85

View File

@ -0,0 +1,32 @@
# Error:
# InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE
# ---
# see: https://dba.stackexchange.com/questions/256427/unable-to-create-tables-with-row-format-compressed
# ---
# If someone else stumbles across this thread (like me) looking for a solution to a
#
# 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE
#
# or similar error from the mariadb for nextcloud, occurring whenever nextcloud tries to write to
# the DB: the important clue for me was, that this error might be related to an utf8 encoding issue.
#
# See here for the nextcloud documentation:
# https://docs.nextcloud.com/server/21/admin_manual/configuration_database/mysql_4byte_support.html
#
#TL;DR:
#
# The solution from
# https://help.nextcloud.com/t/update-to-next-cloud-21-0-2-has-get-an-error/117028/7
# for me was :
#
# php occ config:system:set mysql.utf8mb4 --type boolean --value="false"
#
# followed by
#
# php occ maintenance:repair --include-expensive
#
# which may take a long time.
#
# this will fix all tables so that writing to them becomes possible again.