-
Thanks Wojciech, maybe I've found already the problem, a very few minutes ago. I've already tried to add &useUnicode=true&characterEncoding=UTF-8 to the JDBC connection.
I've found out something different. The collation of my MySQL database seems to have been changed a little bit after an update performed by the hoster.
I have had the problem with the following settings:
mysql> show variables like 'col%'; +----------------------+-----------------+ | Variable_name | Value | +----------------------+-----------------+ | collation_connection | utf8_general_ci | | collation_database | utf8_unicode_ci | | collation_server | utf8_unicode_ci | +----------------------+-----------------+ 3 rows in set (0.00 sec)
I've changed to:
mysql> show variables like 'col%'; +----------------------+-----------------+ | Variable_name | Value | +----------------------+-----------------+ | collation_connection | utf8_unicode_ci | | collation_database | utf8_unicode_ci | | collation_server | utf8_unicode_ci | +----------------------+-----------------+ 3 rows in set (0.00 sec)
Nevertheless, the problem still occurred.
Then I tried to built up the tigase from the scratch, the problem still occurred.
Finally I've tried to change everything to utf8_general_ci. And now it seems to be working fine!
Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
2886
|
Spent time |
0
|
Issue Votes (0)
Watchers (0)
Hi!
I have weird problems with the Tigase PubSub Component. While using it, the server crashes.
In tigase-console.log:
ERROR! Terminating the server process.
PubSub Component is not compatible with
database schema which exists in
jdbc:mysql://213.95.255.19/xmpp?user=xmpp&password=Iez6oPei
This component uses newer schema. To continue
use of currently deployed schema, please use
older version of PubSub Component.
To convert database to new schema please see:
https://projects.tigase.org/projects/tigase-pubsub/wiki/PubSub_database_schema_conversion
ShutdownThread started...
I tried to follow the instructions on https://projects.tigase.org/projects/tigase-pubsub/wiki/PubSub_database_schema_conversion
But it does not work, while using:
sh ./database/pubsub-db-migrate.sh -in-repo-class tigase.pubsub.repository.PubSubDAO:
ERROR! Terminating the server process.
PubSub Component is not compatible with
database schema which exists in
jdbc:mysql://213.95.255.19/xmpp?user=xmpp&password=Iez6oPei
This component uses newer schema. To continue
use of currently deployed schema, please use
older version of PubSub Component.
To convert database to new schema please see:
https://projects.tigase.org/projects/tigase-pubsub/wiki/PubSub_database_schema_conversion
2015-03-30 14:16:08.408 [main] PubSubDAOJDBC.checkSchema() FINEST: Exception during checkSchema: java.sql.SQLException: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='
Any ideas?
Best Regards
Robert