Otto,
Let us concentrate on the migration program mysql_upgrade, as quoted in the
title.
I attach the output of the test in Fedora. So you see what I do expect. It is
the program to check and repair the database schema. It is a regression in
Debian, not an upstream issue.
[bequimao@fedora34 ~]$ mysql_upgrade --socket=/run/user/1000/akonadi/mysql.socket
Phase 1/7: Checking and upgrading mysql database
Processing databases
mysql
mysql.column_stats OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.global_priv OK
mysql.gtid_slave_pos OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.index_stats OK
mysql.innodb_index_stats OK
mysql.innodb_table_stats OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.roles_mapping OK
mysql.servers OK
mysql.table_stats OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.transaction_registry OK
Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views
mysql.user OK
Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables
Processing databases
akonadi
akonadi.collectionattributetable OK
akonadi.collectionmimetyperelation OK
akonadi.collectionpimitemrelation OK
akonadi.collectiontable OK
akonadi.flagtable OK
akonadi.mimetypetable OK
akonadi.parttable OK
akonadi.parttypetable OK
akonadi.pimitemflagrelation OK
akonadi.pimitemtable OK
akonadi.pimitemtagrelation OK
akonadi.relationtable OK
akonadi.relationtypetable OK
akonadi.resourcetable OK
akonadi.schemaversiontable OK
akonadi.tagattributetable OK
akonadi.tagremoteidresourcerelationtable OK
akonadi.tagtable OK
akonadi.tagtypetable OK
information_schema
performance_schema
test
Phase 7/7: Running 'FLUSH PRIVILEGES'
OK
[bequimao@fedora34 ~]$
[bequimao@fedora34 ~]$ dnf list --installed | egrep -i 'mysql|mariadb|akonadi' | sort
akonadi-calendar-tools.x86_64 20.12.2-1.fc34 @fedora
akonadiconsole.x86_64 20.12.2-1.fc34 @fedora
akonadi-import-wizard.x86_64 20.12.2-1.fc34 @fedora
kf5-akonadi-calendar.x86_64 20.12.2-1.fc34 @fedora
kf5-akonadi-contacts.x86_64 20.12.2-3.fc34 @fedora
kf5-akonadi-mime.x86_64 20.12.2-1.fc34 @fedora
kf5-akonadi-notes.x86_64 20.12.2-1.fc34 @fedora
kf5-akonadi-search.x86_64 20.12.2-1.fc34 @fedora
kf5-akonadi-server-mysql.x86_64 20.12.2-1.fc34 @fedora
kf5-akonadi-server.x86_64 20.12.2-1.fc34 @fedora
kf5-kmailtransport-akonadi.x86_64 20.12.2-1.fc34 @fedora
kf5-mailimporter-akonadi.x86_64 20.12.2-1.fc34 @fedora
kf5-pimcommon-akonadi.x86_64 20.12.2-1.fc34 @fedora
mariadb-backup.x86_64 3:10.5.11-1.fc34 @updates
mariadb-common.x86_64 3:10.5.11-1.fc34 @updates
mariadb-connector-c-config.noarch 3.1.13-1.fc34 @updates
mariadb-connector-c.x86_64 3.1.13-1.fc34 @updates
mariadb-cracklib-password-check.x86_64 3:10.5.11-1.fc34 @updates
mariadb-embedded.x86_64 3:10.5.11-1.fc34 @updates
mariadb-errmsg.x86_64 3:10.5.11-1.fc34 @updates
mariadb-gssapi-server.x86_64 3:10.5.11-1.fc34 @updates
mariadb-server-utils.x86_64 3:10.5.11-1.fc34 @updates
mariadb-server.x86_64 3:10.5.11-1.fc34 @updates
mariadb.x86_64 3:10.5.11-1.fc34 @updates
mysql-selinux.noarch 1.0.4-2.fc34 @updates
perl-DBD-MariaDB.x86_64 1.21-12.fc34 @updates
perl-DBD-MySQL.x86_64 4.050-10.fc34 @fedora
qt5-qtbase-mysql.x86_64 5.15.2-22.fc34 @updates
[bequimao@fedora34 ~]$