Home > Database > Mysql Tutorial > How to Fix \'Unknown collation: \'utf8mb4_unicode_ci\'\' Error When Importing WordPress Database in cPanel?

How to Fix \'Unknown collation: \'utf8mb4_unicode_ci\'\' Error When Importing WordPress Database in cPanel?

Linda Hamilton
Release: 2024-11-02 16:16:02
Original
1058 people have browsed it

How to Fix

#1273 - Unknown collation: 'utf8mb4_unicode_ci' in cPanel: Troubleshooting and Resolution

Importing a WordPress database from a local machine to a hosted phpMyAdmin on cPanel can lead to an error message indicating an unknown collation, such as "'utf8mb4_unicode_ci.'" This error arises when the exported database contains tables or columns with character sets and collations incompatible with the target environment.

To resolve this issue, follow these steps:

1. Modify Export Settings:

  • Navigate to the "Export" tab in the database.
  • Select the "Custom" radio button.
  • Under "Format-specific options," change the dropdown titled "Database system or older MySQL server to maximize output compatibility with:" to "MYSQL40."

2. Perform Export:

  • Scroll to the bottom and click "GO."

3. Import the Modified Database:

  • Export the database using the modified settings.
  • Import the exported file into the hosted phpMyAdmin environment.

By following these steps, you should be able to import your database successfully without encountering the "Unknown collation" error.

Note: While exporting the database in this manner may potentially result in data loss, this has not been confirmed through extensive testing. Additionally, data saved in Black Studio TinyMCE Visual Editor widgets may be lost during the export process.

The above is the detailed content of How to Fix \'Unknown collation: \'utf8mb4_unicode_ci\'\' Error When Importing WordPress Database in cPanel?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template