Solution to the error when importing MySQL big data in Navicat

Solution to the error when importing MySQL big data in Navicat

The data that Navicat has exported cannot be imported.
Finally, choose to use MySQL command import to complete the data import

Use the command

use shortcut_
source shortcut\.

The shortcuts can be found through help

mysql>_dataname 
mysql>\. d:\mysql\dataname.sql

Problems encountered during import and solutions Chinese characters are garbled during import

Solution:

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

mysql>show variables like '%char%';

The query shows that the encoding is gbk
Then all the found

mysql>set character_set_results=utf8; 
mysql>set .....(similar to all changed to utf8)

Execute the import again, OK! The encoding is normal and imported successfully.

You may also be interested in:
  • How to use Navicat to import SQL files
  • Solve the problem of Navicat importing database data structure sql reporting error datetime(0)
  • Navicat imports csv data into mysql
  • How to import Chinese data into csv in Navicat for SQLite
  • Navicat for MySql Visual Import CSV File
  • Import csv file into mysql using navicat
  • How to use Navicat to export and import mysql database
  • How to import SQL files in Navicat Premium

<<:  Solution to the problem that crontab output redirection does not take effect in Linux

>>:  About the bug of better-scroll plug-in that cannot slide (solved by plug-in in 2021)

Recommend

In-depth understanding of MySQL slow query log

Table of contents What is the slow query log? How...

CentOS 6 uses Docker to deploy redis master-slave database operation example

This article describes how to use docker to deplo...

A brief discussion on the principle of Vue's two-way event binding v-model

Table of contents explain: Summarize Replenish Un...

How to use cc.follow for camera tracking in CocosCreator

Cocos Creator version: 2.3.4 Demo download: https...

HTML table markup tutorial (1): Creating a table

<br />This is a series of tutorials provided...

Detailed explanation on how to modify the default port of nginx

First find out where the configuration file is wh...

WeChat Mini Program Basic Tutorial: Use of Echart

Preface Let’s take a look at the final effect fir...

How to filter out certain libraries during mysql full backup

Use the --all-database parameter when performing ...

How to deploy Confluence and jira-software in Docker

version: centos==7.2 jdk==1.8 confluence==6.15.4 ...

Fixed a bug caused by scrollbar occupying space

background This bug was caused by滾動條占據空間. I check...

Simple steps to implement H5 WeChat public account authorization

Preface Yesterday, there was a project that requi...

Front-end development must learn to understand HTML tags every day (1)

2.1 Semanticization makes your web pages better u...

Detailed tutorial on distributed operation of jmeter in docker environment

1. Build the basic image of jmeter The Dockerfile...