DBUpdate: character_set_database needs to be 'utf8'

Hilfe zu OTRS Problemen aller Art
Post Reply
ChrisIAS
Znuny newbie
Posts: 55
Joined: 12 Jul 2017, 09:43
Znuny Version: 5.0.20 / 3.2.12

DBUpdate: character_set_database needs to be 'utf8'

Post by ChrisIAS »

Hallo zusammen,

ich bin am aktualisieren meines OTRS 5.0.20 auf die v6.0.2. Dabei konnte ich mich schon bis zum DBUpdate durcharbeiten.
Wenn ich DBUpdate-to-6.pl laufen lasse, bingt er mir folgendes:

Code: Select all

Error: The setting character_set_database needs to be 'utf8'.
Dabei habe ich extra in der my.cnf folgende Einstellung mit aufgenommen und den Server neu gestartet:

Code: Select all

[client]
default-character-set=utf8

[mysql]
default-character-set=utf8


[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
Jetzt steht character_set_database auf utf8. Doch läuft DBUpdate immer noch in die selbe Meldung.

Code: Select all

mysql> show session variables like 'char%';
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

mysql> show global variables like 'char%';
+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

Lasse ich mir in der MySQL Konsole die Tables der OTRS Datenbank anzeigen,

Code: Select all

SHOW TABLE STATUS FROM otrs;
Sehe ich, dass alle Tabellen auf "utf8_general_ci" stehen.

Ich frage mich, was das Script noch auszusetzen hat? Hat jemand eine Idee?

Vielen Dank für eure Hilfe und Grüße
Chris
OTRS 5.0.x mit ITSM, LAMP Ubuntu
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: DBUpdate: character_set_database needs to be 'utf8'

Post by jojo »

was sagt Dir:

Code: Select all

 SELECT default_character_set_name FROM information_schema.SCHEMATA 
    -> WHERE schema_name = "otrs";
?
"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
ChrisIAS
Znuny newbie
Posts: 55
Joined: 12 Jul 2017, 09:43
Znuny Version: 5.0.20 / 3.2.12

Re: DBUpdate: character_set_database needs to be 'utf8'

Post by ChrisIAS »

Hi jojo,

Oh, das sagt mir latin1 :shock: Ich vermute, das muss auch auf utf8 stehen.

Code: Select all

mysql> SELECT default_character_set_name FROM information_schema.SCHEMATA
    -> WHERE schema_name = "otrs";
+----------------------------+
| default_character_set_name |
+----------------------------+
| latin1                     |
+----------------------------+
1 row in set (0.00 sec)
Ich habe das doch extra in der my.cnf definiert:

Code: Select all

[client]
default-character-set=utf8

[mysql]
default-character-set=utf8
Muss das unter "mysqld"

Dank für deinen Tipp und viele Grüße
Chris
OTRS 5.0.x mit ITSM, LAMP Ubuntu
ChrisIAS
Znuny newbie
Posts: 55
Joined: 12 Jul 2017, 09:43
Znuny Version: 5.0.20 / 3.2.12

Re: DBUpdate: character_set_database needs to be 'utf8'

Post by ChrisIAS »

Okay, mit deinem Tipp und dieser Webseite bin ich einen Schritt weiter gekommen >>http://www.alphadevx.com/a/420-Converti ... n1-to-utf8

Ich konnte den default_character_set_name auf utf8 ändern.

Code: Select all

ALTER DATABASE otrs CHARACTER SET utf8 COLLATE utf8_general_ci;
SELECT default_character_set_name FROM information_schema.SCHEMATA WHERE schema_name = "otrs";
Damit läuft das DBUpdate Skript weiter.

Vielen Dank für eine Hilfe
Chris
OTRS 5.0.x mit ITSM, LAMP Ubuntu
Post Reply