Skip to Content.
Sympa Menu

en - Re: [sympa-users] sympa upgrade: Illegal mix of collations

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Steve Shipway <address@concealed>
  • To: dev <address@concealed>, address@concealed
  • Subject: Re: [sympa-users] sympa upgrade: Illegal mix of collations
  • Date: Wed, 24 Jul 2019 09:20:07 +1200

Thanks for the info! I've run 'alter table sympa.$table convert to
character set utf8mb4 collate utf8mb4_unicode_ci' on all my sympa tables
and that seems to have fixed it.

...

Ok, so utf8mb4_general_ci should change for the server settings below?

MariaDB [(none)]> show variables like "collation%";
+----------------------+--------------------+
Variable_name | Value |
+----------------------+--------------------+
collation_connection | utf8mb4_general_ci | collation_database | utf8mb4_general_ci | collation_server | utf8mb4_general_ci |
+----------------------+--------------------+ Add to /etc/mysql/conf.d/sympa.cnf ?: [mysqld] collation-server = utf8mb4_unicode_ci init-connect ='SET NAMES utf8mb4_unicode_ci' character-set-server = utf8mb4_unicode_ci [client] default-character-set=utf8mb4_unicode_ci [mysql] default-character-set=utf8mb4_unicode_ci

The first change would be a good idea to change your system defaults to match the _unicode_ collation, to ensure that this problem does not happen again.  The second would have a similar effect.  Since you're standardising on utf8mb4_unicode everywhere it certainly wouldn't hurt I think

Steve

--
Steve Shipway | Senior Email Systems Administrator 
Phone: +64 9 302 0515 Fax: +64 9 302 0518 
Freephone: 0800 SMX SMX (769 769) 
SMX Limited: Level 10, 19 Victoria Street West, Auckland, New Zealand 
Web: http://smxemail.com 

This email has been filtered by SMX. For more information visit smxemail.com.



Archive powered by MHonArc 2.6.19+.

Top of Page