Detailed explanation of how to report errors when importing mysql big data into Navicat

Y2J
Release: 2017-05-22 14:25:33
Original
2594 people have browsed it

This article mainly introduces the solution to the error when importing mysql big data in Navicat. Friends who need it can refer to

Navicat's own data everywhere, and it cannot be imported when importing.
Finally choose to use the MySQL command import method to complete the data import

Use the command

useshortcut\u
sourceshortcut Method\.

The shortcut can be queried through help

mysql>\u dataname mysql>\. d:\mysql\dataname.sql
Copy after login

Problems encountered during import and solutions
When importing Chinese garbled characters

Solution:

When exporting with Navicat, UTF8 encoding is used. When importing, MySQL uses its own default encoding method to import, and Chinese garbled characters are generated
Query with command

mysql>show variables like '%char%';
Copy after login

If you query, you will see that the encoding is gbk
and then use

mysql>set character_set_results=utf8; mysql>set .....(类同都修改成utf8)
Copy after login

to execute the import again, OK! The encoding is normal and the import is successful.

【Related Recommendations】

1.Mysql Free Video Tutorial

2.MYSQL Unlock Detailed explanation of examples of table locking and locking Error

5.The original content of Mysql does not change and the content is added later. Detailed explanation of the sql statement

The above is the detailed content of Detailed explanation of how to report errors when importing mysql big data into Navicat. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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 Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!