How to import Excel files into MySQL database

How to import Excel files into MySQL database

This article shares with you how to import Excel files into MySQL database for your reference. The specific content is as follows

1. Introduction

This blog shares with you a practical little skill. When we use a database, we often need to add the required Excel data. If we follow the traditional method, it will be time-consuming and laborious, so I will share with you the skill of importing Excel data.

2. Actual operation

1) First, you need to download a database management tool called Navicat for MySQL. You can download Navicat for MySQL from the following website. After downloading and installing, you can operate it;

2) I will use a CET-6 vocabulary list as an example to explain. A partial screenshot of the vocabulary list is as follows:

It contains vocabulary, translations and their mnemonics;

3) Use Navicat to create a new table named "english", and then enter the following interface:

4) Click "Import Wizard" directly, select the Excel file, and choose the format as .xls, as shown below:

5) Click Next directly, then you need to add the path of the Excel table and select the sheet where the content to be added is located, as shown below:

6) After clicking Next, you need to select "Field Name Row" and "First Data Row". These two parts should be operated according to the actual situation, as shown below:

7) Then click Next until you enter the following interface to view the correspondence between the target column and the original column, as shown below:

8) After confirming that the correspondence is correct, click Next, then select Add, then click Next again and click Start. After the import is completed, the prompt is as shown below:

9) After the operation is completed, open the English table in the MySQL database again to check whether the import is successful, as shown below:

3. Summary

In the following blogs, I will share a small word query program made with Java programming. At that time, the program will need to connect to the database and call the table. It can be said that it is just a preliminary task now. I hope everyone can learn how to import Excel into MySQL database.

You may also be interested in:
  • Detailed explanation of the process of importing excel data into the database using python
  • Java parses Excel files and stores data in the database
  • Python implements an example of exporting a database to an Excel table with one click
  • Pentaho tool imports and exports database data into Excel graphics and text steps

<<:  Detailed explanation of Linux environment variable configuration strategy

>>:  Detailed instructions for installing mysql5.7 database under centos7.2

Recommend

Docker adds a bridge and sets the IP address range

I don't know if it's because the binary d...

Six important selectors in CSS (remember them in three seconds)

From: https://blog.csdn.net/qq_44761243/article/d...

Example code for implementing 3D text hover effect using CSS3

This article introduces the sample code of CSS3 t...

MySQL 8.0.13 installation and configuration tutorial under CentOS7.3

1. Basic Environment 1. Operating system: CentOS ...

JavaScript mobile H5 image generation solution explanation

Now there are many WeChat public account operatio...

Solution to Navicat Premier remote connection to MySQL error 10038

Remote connection to MySQL fails, there may be th...

Implementing user registration function with js

This article example shares the specific code of ...

Vue implements multi-tab component

To see the effect directly, a right-click menu ha...

Basic operation tutorial of files and permissions in centos

Preface Before we begin, we should briefly unders...

CentOS7 installation zabbix 4.0 tutorial (illustration and text)

Disable SeLinux setenforce 0 Permanently closed: ...

Win32 MySQL 5.7.27 installation and configuration method graphic tutorial

The installation tutorial of MySQL 5.7.27 is reco...

Specific use of Linux which command

We often want to find a file in Linux, but we don...

Detailed summary of mysql sql statements to create tables

mysql create table sql statement Common SQL state...

Solution to nginx-ingress-controller log persistence solution

Recently I saw an article on a public account tha...