- The first step: you need to prepare Excel with data:
- Second step: Select "File", "Save As", saved as "CSV (comma delimited) (*.csv)", save Excel table as CSV document
- Step three: (Very important): If you have Chinese in your data, then you need to process the CSV file, responsible for the import failure: Open the CSV file with EditPlus or another editor (you can choose to save the encoded editor when saving), and then save As, Select Utf-8 (Your database is also utf-8 OH), click Save.
- Fourth step: Start the import, using the MySQL graphical tool (Navicat for MySQL, Navicat Premium), I use Navicat Premium
Open Navicat Premium Select a database, right-click on the table, Select Import Wizard, select CSV, Next, select the CSV file you have processed
Then the next step is to change the target table to your table name and then the next step, until the last click starts, all the data is imported into the table.
OK, the data is all imported into the database
Introduction to using the Navicat tool to import data from Excel into MySQL