1273 - Unknown collation 'utf8mb4_unicode_ci' cPanel
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.
In some web hosting environments, particularly when using cPanel with MySQL databases, users may encounter a specific error: `#1273 - Unknown collation: 'utf8mb4_unicode_ci'`. This article delves into the technicalities of this error, explores the context in which it occurs, and provides practical solutions for overcoming it.
Understanding the Error
The error message `#1273 - Unknown collation: 'utf8mb4_unicode_ci'` suggests that the MySQL database system has encountered a collation specification it doesn't recognize. To better understand this, it's essential to consider two related concepts within MySQL: character sets and collations.
Character Sets:
A character set in MySQL defines the set of characters that can be used. `utf8mb4` is one such character set that supports the full Unicode range, including multibyte characters such as Emojis.
Collation:
Collation refers to the rules that determine how characters within a character set are compared and ordered. `utf8mb4_unicode_ci` is a collation designed for the `utf8mb4` character set, supporting complex Unicode comparisons.
The Issue:
The core of the problem is that the MySQL version in use doesn't recognize `utf8mb4_unicode_ci`. This can occur if the MySQL server version is too old (prior to 5.5.3) or if a specific installation configuration doesn't support `utf8mb4`.
Context: Where and Why it Happens
This error is commonly reported in environments using web hosting control panels like cPanel. Here's a closer look at why it occurs:
- Old MySQL Versions:
If your hosting provider uses an older MySQL version, it may not support the `utf8mb4` character set and related collations. - Misconfiguration:
Even on supported versions, incorrect default settings or custom configurations might disable the `utf8mb4` character set or its collations. - Database Migration:
When migrating from a newer environment to an older one, tables or databases engineered with `utf8mb4_unicode_ci` collation may trigger this error.
Solutions and Workarounds
Addressing the issue involves determining the underlying cause and implementing appropriate solutions. Here are some recommended approaches:
Solution 1: Upgrade MySQL
Check your MySQL version using the following command:
Related reading
- 1273 – Unknown collation ‘utf8mb4_unicode_520_ci’
- 2 Helm Charts with shared Redis dependency
- 2PC distributed transactions across many microservices?
- 3 fields composite primary key unique item in Dynamodb
- 3Phase commit protocol - Distributed System
- Difference between Redis and Kafka
- How to add a column with a default value to an existing table in SQL Server?
- Improve INSERT-per-second performance of SQLite

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseTrack what you have practised
A free account saves your progress, solutions and study plan across every problem on Codemia.
System Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.