![]() |
VOOZH | about |
The CData Excel Add-In for MySQL enables you to edit and save MySQL data directly from Excel. This article explains how to transfer data from Excel to MySQL. This technique is useful if you want to work on MySQL data in Excel and update changes, or if you have a whole spreadsheet you want to import into MySQL. In this example, you will use the Orders table; however, the same process will work for any table that can be retrieved by the CData Excel Add-In.
If you have not already done so, create a new MySQL connection by clicking From MySQL on the ribbon.
The CData Provider supports connecting to on-premises and cloud-hosted versions of MySQL such as Amazon RDS for MySQL, Google Cloud SQL for MySQL, Azure Database for MySQL, or Oracle MySQL HeatWave. The Server and Port properties must be set to a MySQL server. If IntegratedSecurity is set to false, then User and Password must be set to valid user credentials. Optionally, Database can be set to connect to a specific database. If not set, tables from all databases will be returned.
You can use SSH (Secure Shell) to authenticate with MySQL, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).
To connect to MySQL via SSH in Password Auth mode, set the following connection properties:
To connect to MySQL via SSH in Password Auth mode, set the following connection properties:
To insert data into MySQL, you will first need to retrieve data from the MySQL table you want to add to. This links the Excel spreadsheet to the MySQL table selected: After you retrieve data, any changes you make to the data are highlighted in red.
After retrieving data, you can add data from an existing spreadsheet in Excel.
As each row is inserted, the Id value will appear in the Id column and the row's text will change to black, indicating that the record has been inserted.
👁 The changes applied. (QuickBooks is shown.)Download a free trial of the Excel Add-In for MySQL to get started:
Download NowLearn more:
👁 MySQL Server IconThe MySQL Excel Add-In is a powerful tool that allows you to connect with live data from MySQL Server databases, directly from Microsoft Excel.
Use Excel to read, write, and update MySQL data. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!