The error "Unknown character set: 'utf8mb4'" is returned when you import the MySQL database.

Source: Internet
Author: User
Today, old Zuo is preparing to migrate the website of a customer from the company to another server, and back up the latest webpage files and export the database according to the normal operation, then, create a site and database wget on the new server and migrate it to and decompress it. Because the database is small, you can directly use PHPMyAdmin to import data online. However, the error message "#1115-Unknown character set: 'utf8mb4'" is displayed '".

 

1. Error message

 

 

It seems that the problem is caused by the database version. I can see that MYSQL5.1, a previous website version, is MYSQL5.5, and utf8mb4 is used since 5.5, while our database version is still the old utf8 version.

 

2. Solution

 

 

We use sublime to open the database and modify utf8mb4 to utf8.

 

3. Re-import the MySQL database

 

 

In this way, we can re-modify the database encoding and then import it to the MySQL database of a later version. This problem can be solved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.