DEV Community

Cover image for One-click import Excel to MySQL
ryjfgjl
ryjfgjl

Posted on

One-click import Excel to MySQL

This article will introduce how to import Excel data into MySQL quickly and easily.

Preparation

Here, we prepare an Excel table, as shown below:

DiLu Converter

New Connection

Open the DiLu Converter tool and create a new database connection firstly. Here we select MySQL database. For a detailed introduction to creating a new database connection, please refer to: Create a new database connection guide

DiLu Converter

DiLu Converter

New Import

After creating a new database connection, click New Import

DiLu Converter

Start importing

Select the Excel file to be imported and click Start.

DiLu Converter

View Results

DiLu Converter

Optimization

As you can see, the table fields created by the default are all of the varchar type, which makes the import speed as fast as possible and avoids import failures caused by inconsistency between data and data types.

We can also let the tool automatically detect data types . The advantage of this is that the field type can be more consistent with the actual data and make subsequent SQL queries more convenient.

Select Rebuild Mode - Select Auto Detect, and click Start to re-import

DiLu Converter

See again

DiLu Converter

Save the import configuration

We can save the import configuration so that we can repeat the import next time.

DiLu Converter

You can see the saved import in the object interface or under the database connection on the left

DiLu Converter

Next time you open the software, first double-click the connection name to open the connection - double-click the import name to open the saved import.

DiLu Converter

Just click to start

DiLu Converter

About DiLu Converter

DiLu Converter is a powerful automated Excel import and export tool that supports more than 10 databases such as MySQL, Oracle, SQL Server, PostgreSQL, IBM DB2, Access, and Hive. The supported file formats include xls, xlsx, xlsm, xlsb, csv, txt, xml, json, and dbf. Its native user interface brings users a comfortable experience of simplified Excel import and export, making Excel import and export easier than ever before. Whether you want one-click, batch, and personalized import and export, or want to use scheduled tasks to achieve unattended full automation, DiLu Converter can bring you unprecedented productivity improvement.

Go to DiLu Converter Official Website

Top comments (0)