MySQL, falsche collations?

Hilfe zu OTRS Problemen aller Art
Post Reply
bastimm
Znuny newbie
Posts: 22
Joined: 09 Oct 2013, 10:32
Znuny Version: 3.3beta

MySQL, falsche collations?

Post by bastimm »

Hallo zusammen,

leider habe ich gerade erst bemerkt, dass meine DB nicht die richtigen collations eingestellt hat und es so immerwieder zu Fehlern kommt.
Siehe:
[Wed Nov 26 09:54:01 2014] otrs.PostMasterMailbox.pl: DBD::mysql::st execute failed: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' at /srv/www.voltmaster.de/otrs/Kernel/System/DB.pm line 584.
ERROR: OTRS-otrs.PostMasterMailbox.pl-75 Perl: 5.18.2 OS: linux Time: Wed Nov 26 09:54:01 2014

Message: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=', SQL: 'SELECT id FROM article WHERE ticket_id = ? AND a_message_id = ? AND a_from = ? AND a_subject = ? AND incoming_time = ? ORDER BY id DESC LIMIT 1'
Wie kann ich nun am besten vorgehen?
Soll ich in OTRS von UTF8 auf latin1 umstellen, oder in der DB jede einzelne Spalte auf collation = utf8 umstellen?
Wie bekomme ich das am besten ohne Probleme hin, bzw ohne die aktuelle DB zu beschädigen?

zum System: OTRS 4.01, auf Ubuntu mit MySQL 5.5.40
DANKE im Voraus!
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: MySQL, falsche collations?

Post by jojo »

OTRS benötigt utf8
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
bastimm
Znuny newbie
Posts: 22
Joined: 09 Oct 2013, 10:32
Znuny Version: 3.3beta

Re: MySQL, falsche collations?

Post by bastimm »

ok, Danke erstmal!
d.h. ich gehe jede Tabelle im PHPMyAdmin durch und stelle jede spalte mit collation = larin1/... um auf "utf8"?
Kann es dabei Probleme geben?
Oder gibt es evtl einen allgemeinen Befehl um alles umzustellen?

Danke im Voraus
Post Reply