MySQL import backup. sql file times wrong summary (still to be perfected)

Source: Internet
Author: User
Tags mysql version mysql import

Error 1:error Unknown Character set: ' Utf8mb4 '

The UTF8MB4 encoding set supports emoticons and believes that people who have processed social network data are aware of it. This mysql5.5 supports the UTF8MB4 encoding set later, so it can only uninstall 5.1, upgrade 5.5

Set the Default-character-set = Utf8mb4 in MySQL my.cnf, set the UTF8MB4 in each [], or set it up in this setting, more convenient and efficient when building a database or datasheet

[Client]
Default-character-set = Utf8mb4

[MySQL]
Default-character-set = Utf8mb4

[Mysqld]
Character-set-client-handshake = FALSE
Character-set-server = Utf8mb4
Collation-server = Utf8mb4_unicode_ci
init_connect= ' SET NAMES utf8mb4 '

Error 2:

#1064in for ' using BTREE,  KEY ' Authorid ' (' Authorid ') using BTREE,  KEY ' Dateline ' (' Datel'   at line

After looking for the MySQL version of the issue, the imported library is the server version:5.0.18, the exported library 5.1.45. Open the exported MySQL file and find a similar

KEY ' Authorid ' (' Authorid ') USING BTREE

Modified into

KEY ' Authorid ' USING BTREE (' Authorid ')

MySQL import backup. sql file times wrong summary (still to be perfected)

Related Article

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.