Amar Host Helpdesk Amar Host Helpdesk
  • Helpdesk Article
  • Forums
My Account
Amar Host Helpdesk Amar Host Helpdesk
My Account
  • Helpdesk Article
  • Forums
  • banner shape
  • banner shape
  • plus icon
  • plus icon

How to Fix Unknown collation: utf8mb4_0900_ai_ci in cPanel

Updated on November 10, 2025
1 minute
cPanel
Share

How to Fix Unknown collation: utf8mb4_0900_ai_ci in cPanel

Or copy link

Clipboard Icon
73 Views
How to Fix “Unknown collation: ‘utf8mb4_0900_ai_ci’” in cPanel

If you use MySQL or MariaDB, you might have encountered the following error:

Unknown collation: 'utf8mb4_0900_ai_ci'

 Why This Happens

This error usually occurs when you try to import a database from a newer MySQL/MariaDB version into an older version. For example:

  • MySQL 8.0 → MariaDB 10.3

 Step-by-Step Solution

1. Upload the SQL File

First, upload your database .sql file via cPanel → File Manager.

2. Open Terminal

Go to Terminal in cPanel.

3. Navigate to the Folder

Change directory to the folder where the .sql file was uploaded:

cd path/to/your/folder

Replace path/to/your/folder with the actual folder path.

4. Run the Replacement Command

Execute the following command to fix the collation:

sed -e 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' -i myfilename.sql

Replace myfilename.sql with your actual SQL file name.

This command replaces all instances of utf8mb4_0900_ai_ci with utf8mb4_unicode_ci in the SQL file.

5. Download and Import

Download the modified SQL file from File Manager and import it again via phpMyAdmin.

 Result

Your database will now import successfully without the “Unknown collation: ‘utf8mb4_0900_ai_ci’” error.

Related Post

7 minutes cPanel

cPanel Essential Guide: Master Web Hosting Ma

cPanel Essential Guide: Master Web Hosting Management w...

7 minutes cPanel

7 cPanel Settings You Must Change Right Now F

7 cPanel Settings You Must Change Right Now For 3X Fast...

how-to-fix-error-fetching-installed-ssl-certs-in-cpanel
3 minutes cPanel

How to Fix Error Fetching Installed SSL Certs

If you are trying to install or manage an SSL certifica...

Leave a Comment Cancel reply

Recent Posts

How to Connect GitHub Repositories to cPanel: Public & Private Guide
3 minutes February 14, 2026
SMTP Integration Guide with AmarHost
4 minutes January 19, 2026
How to Access Amarhost Shared Hosting via SSH using PuTTY
3 minutes January 19, 2026
VIP Member at AmarHost
Become a VIP Member at AmarHost and Unlock Exclusive Deals & Discounts
3 minutes January 9, 2026

Recent Comments

    Categories

    • AlmaLinux
    • Cloudflare
    • cPanel
    • Domain
    • Domain Guide
    • Getting Started
    • Hosting
    • Hosting Guide
    • Hosting Offer
    • Laravel
    • Script
    • Server
    • Server Guide
    • SMTP
    • Website & Apps
    • Webuzo
    • WHM
    • WordPress

    Tags

    .COM Domain Affordable Domains Affordable Pricing AlmaLinux Amar Hoster Buy .COM CDN Cheap Domains Cloudflare Cloudflare tutorial cPanel cPanel Email database DNS setup Domain Names Domain Registration Domain Transfer Email Configuration Email Deliverability Hosting Provider https://www.amar.host/affordable-com-domain-registration-starting-at-1099-tk-with-amar-hoster/ Installation guide Local Hosting PHPMailer Port 465 Port 587 Register Domain security Server setup setup guide SMTP Settings SPF and DKIM SSD Hosting SSL TLD Registration Transactional Email VPS hosting Web Hosting Web Hosting Guide website performance website security website speed whm WordPress SMTP WP Mail SMTP
    February 2026
    SMTWTFS
    1234567
    891011121314
    15161718192021
    22232425262728
    « Jan    
    Leaf Illustration

    © 2025 All Rights Reserved by Amar Host