Greetings!
It appears that distribution/src/database/openfire_mysql.sql is in contention with some MySQL deployments using “Percona XtraDB Cluster” (PXC) due to lack of PK on 2 tables: ofPubsubNodeGroups and ofMucConversationLog. Under PXC with pxc_strict_mode = ENFORCING, every table undergoing DML (insert, delete, update) must have an explicit primary key. See Percona XtraDB Cluster strict mode - Percona XtraDB Cluster .
PXC should immediately return “ERROR 1105 (HY000)” to the JDBC client in this scenario, as I’ve confirmed in Openfire logs.