How to solve an error when importing mysql big data in Navicat? navicatmysql

Source: Internet
Author: User

How to solve an error when importing mysql big data in Navicat? navicatmysql

Navicat's own data is everywhere and cannot be imported during import.
Finally, use the MySQL command to import data.

Command Used

UseShortcut \ u
SourceShortcut \.

You can use help to query shortcuts.

Mysql> \ u dataname mysql> \. d: \ mysql \ dataname. SQL

Problems encountered during import and Solutions
Chinese garbled characters during import

Solution:

UTF8 encoding is used when Navicat is used for export. MySQL uses its own default encoding method for import, and garbled characters are generated in Chinese.
Query by command

Mysql> show variables like '% char % ';

The encoding shown in the query is gbk.
And then all

Mysql> set character_set_results = utf8; mysql> set ...... (all classes are modified to utf8)

Execute import again. OK! The code is normal and imported successfully.

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.