With focal mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'koha_kohadev' AND TABLE_NAME = 'account_credit_types';': Unknown table 'COLUMN_STATISTICS' in information_schema (1109) But adding --column-statistics=0 (like suggested over the web) will break the command when run with a lower version mysqldump: unknown variable 'column-statistics=0'
Hm, the versions here are quite old now - can we tell if this is still a problem?