My Oracle Support Banner

ERROR 1271 (HY000): Illegal Mix Of Collations for Operation 'concat' in MySQL 5.1 Versions (Doc ID 1563850.1)

Last updated on MAY 25, 2021

Applies to:

MySQL Server - Version 5.1 and later
Information in this document applies to any platform.
Only affects versions 5.1 and earlier. Will not be fixed in 5.1 version.

Symptoms

On : 5.1 version, Character Sets and Localization

When attempting to replicate data inserted via a function after character set change,
the following error occurs.

ERROR
-----------------------
ERROR 1271 (HY000): Illegal mix of collations for operation 'concat'


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Set database character set to utf8
2. Create and replicate a function
3. Insert data using function and check error on replica

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot easily replicate data after character set change .

Changes

 Changes in the character set and/or collation.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.