Giter Site home page Giter Site logo

Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'find_in_set' about common-schema HOT 17 CLOSED

nikolay200669 avatar nikolay200669 commented on June 18, 2024
Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation 'find_in_set'

from common-schema.

Comments (17)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Maybe it has something to do with:
MariaDB [(none)]>show variables like 'collation_%';
+----------------------+-----------------+
| 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)

But even if I do
>set @@collation_connection ='utf8_unicode_ci';
And then reissue common_schema import... same thing happens.

Original comment by [email protected] on 24 Sep 2012 at 8:44

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Can you please attach your my.cnf file? In particular character-set and 
collation settings.
Do you have an init-connect setting?

Original comment by [email protected] on 25 Sep 2012 at 4:42

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Have just tried to repeat with 5.5.27-MariaDB, encountered no problem. Will 
need your config.

Original comment by [email protected] on 25 Sep 2012 at 5:47

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024

[client]
default-character-set = utf8

[mysqld]

character-set-server      = utf8
collation-server          = utf8_unicode_ci

lower-case-table-names    = 1

event-scheduler           = ON

[mysqld-5.5]

[mariadb]

[mariadb-5.5]
performance_schema
userstat
enable-feedback

Original comment by [email protected] on 25 Sep 2012 at 11:08

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Most probably the line "collation-server = utf8_unicode_ci" is the cause.


Original comment by [email protected] on 25 Sep 2012 at 11:09

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Most probably -- but I still can't repeat. Using same config as yours, both for 
[mysqld] and for [client] (was suspecting mismatch between client & server), 
and 5.5.27-MariaDB (64bit) on Ubuntu Linux.

What is the command you use to import common_schema?
Via connector? GUI editor? command line? SOURCE?

I am guessing there will be no problem using SOURCE. Can you verify?

Original comment by [email protected] on 25 Sep 2012 at 2:17

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
My scenario:

[root@process ~]# cat .bashrc | grep mariadb
alias mariadb='/data/mariadb/bin/mysql --socket=/data/mariadb-data/mariadb.sock 
--prompt="MariaDB-Collector [\d]>"'


Original comment by [email protected] on 27 Sep 2012 at 7:57

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
[deleted comment]

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024

Original comment by [email protected] on 27 Sep 2012 at 8:01

Attachments:

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
[Sorry about mixing email addresses but it seems at home the wrong GA domain is 
the default domain... I'm the same Gabriel but posting from two addresses]

What else would you need?

Original comment by [email protected] on 27 Sep 2012 at 8:02

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Thanks! I think you gave me all the info I may need. I will try again to 
reproduce on my machine, though so far unlucky.

I have a good guess as for where the bug originates, but would like to actually 
SEE it...

Original comment by [email protected] on 28 Sep 2012 at 4:00

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
You might want to try adding in my.cnf that is read by the client the following:

[client]
default-character-set=utf8
[mysql]
default-character-set=utf8


Original comment by [email protected] on 28 Sep 2012 at 9:52

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
haha! At last I am able to reproduce. Problem lies within the CREATE DATABASE 
statement and the collation_database variable. Will fix.

Original comment by [email protected] on 29 Sep 2012 at 1:19

  • Changed state: Accepted

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
As a quick fix for you, please add the following line:

ALTER DATABASE common_schema DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 
'utf8_general_ci';


Right after the line:

CREATE DATABASE IF NOT EXISTS common_schema;

(line 50 in common_schema-1.1.sql)
Let me know if this solves your immediate error.

Will have this in next release, scheduled soon.

Original comment by [email protected] on 29 Sep 2012 at 1:23

  • Changed state: Started

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
[deleted comment]

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Great.

I confirm that after adding ALTER DATABASE... all works fine.

Same goes for TokuDB for MariaDB.

Original comment by [email protected] on 1 Oct 2012 at 7:01

from common-schema.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 18, 2024
Fixed by r350
(not yet released)

Original comment by [email protected] on 2 Oct 2012 at 5:40

  • Changed state: Verified

from common-schema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.