Upgrade from mariadb 10.3 to 10.5.8
mysql_upgrade scripts executes:
ALTER TABLE event DROP PRIMARY KEY, ADD PRIMARY KEY(db, name)
this however takes infinite time if there are any events in table event. Its the same if query is executed manualy on mysql database. If events are removed then query is executed ok and mysql_upgrade works fine.