Danke für deine Hilfe monotek.
Ich habe hier ein kleines Howto evtl. kannst du es in das entsprechende Forum stellen.
LÖSUNG des Problems:
Folgendes ist für eine Migration von 2.0.4 auf 2.2.2 und latin1 auf utf8 notwendig.
Auf Quellsystem:
Code: Select all
mysqldump -u root -p --opt otrs > otrsdb.sql
recode latin1..UTF-8 <otrsdb.sql >otrsdbutf8.sql
otrsdbutf8.sql nach Zielsystem kopieren
Auf Zielsystem:
Folgende Voraussetzungen müssen auf dem Zielsystem erfüllt sein.
Mysql muss wie folgt konfiguriert sein:
Code: Select all
/etc/my.cnf
[client]
default-character-set = utf8
[mysqld]
max_allowed_packet = 10M
character-set-server = utf8
default-character-set = utf8
collation-server = utf8_general_ci
default-collation = utf8_general_ci
Code: Select all
mysql –u root –p
drop database otrs;
CREATE DATABASE otrs CHARACTER SET utf8;
exit
Code: Select all
mysql –u root –p otrs < otrsdbutf8.sql
mysql -u root -p otrs < /opt/otrs/scripts/DBUpdate-to-2.1.mysql.sql
mysql -u root -p otrs < /opt/otrs/scripts/DBUpdate-to-2.2.mysql.sql
Code: Select all
In der Datei /opt/otrs/scripts/tools/convert_db_to_utf8.pl
Suchen:
# use this if you worked with OTRS 2.1 or lower
$Convert = 1;
# $Convert = 0;
Ersetzen mit:
# use this if you worked with OTRS 2.1 or lower
# $Convert = 1;
$Convert = 0;
Nun /opt/otrs/scripts/tools/convert_db_to_utf8.pl ausführen
Empfohlen nach der Migration:
Da die Performance bei mir nach der Migration sehr schlecht war, empfehle ich noch folgendes:
Code: Select all
mysql -u root -p -e "optimize table article" otrs
mysql -u root -p -e "optimize table ticket" otrs
mysql -u root -p -e "optimize table ticket_history" otrs