At least one of our comment tables (bx_*_cmts tables) has a different character set / collation than the others, so MySQL refuses to UNION them. It appears related to Messenger under cmts-administration.
bx_*_cmts
Given that this is happening in UNA CMS involving the Messenger module and comment tables, probably the simplest and safest fix is to:
ALTER TABLE
mysqldump -u USERNAME -pPASSWORD DATABASE_NAME > backup.sql
Here are a few ways to fix or work around this issue:
Login into MySQL
mysql -u USERNAME -pPASSWORD DATABASE_NAME
Check the character set and collation of all comment tables (bx_*_cmts):
SHOW FULL COLUMNS FROM bx_table_name;
If they differ, alter the tables so they use the same character set and collation:
ALTER TABLE bx_table_name MODIFY column_name VARCHAR(…) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Make sure the main text columns used in the UNION operation match exactly.
Given that this is happening in UNA CMS involving the Messenger module and comment tables, probably the simplest and safest fix is to:
bx_*_cmtstable(s) have the “wrong” collation.ALTER TABLEto set them to the same collations as the others.⚠️ Before making any modifications, always create a full database backup.
Here are a few ways to fix or work around this issue:
Align Collations / Character Sets
Login into MySQL
Check the character set and collation of all comment tables (
bx_*_cmts):SHOW FULL COLUMNS FROM bx_table_name;If they differ, alter the tables so they use the same character set and collation:
Make sure the main text columns used in the UNION operation match exactly.