Data Import & Export

Fix Excel MySQL Connection Errors After Azure Migration

Adam DavisAdam Davis Nov 20, 2026 868 views

Question details

The user needs to restore an Excel connection to MySQL after moving the database to Azure.

Fix Excel MySQL Connection Errors After Azure Migration
Product
Microsoft Excel and Azure-hosted MySQL
Device & OS
not provided
Scenario
An existing Excel connection must be updated to reach a MySQL database hosted in Azure instead of a local server.
Observed behavior
Excel reports, “Authentication failed because the remote party has closed the transport stream.”
Before you start

Confirm that the Azure database is MySQL, not Azure SQL Database, and obtain its server name, port, authentication requirements, and network access details from the administrator. Keep the working local connection settings available for comparison.

Solution 1Recommended

Recreate the Excel connection with the Azure MySQL settings

Use this approach to replace local server settings with the correct Azure endpoint and connection options.

Use a MySQL-compatible connector or ODBC driver. Instructions for connecting to Azure SQL Database use a different database engine and may not apply.

1
Check the Azure endpoint

In the Azure portal, open the MySQL server's Overview and Networking pages. Record the server name and confirm the port and access method; MySQL commonly uses port 3306.

2
Prepare the connector

Install or update a MySQL-compatible ODBC driver, then configure a data source with the Azure server, port, database, and required TLS settings. If using Windows, open ODBC Data Sources and choose the version matching Excel's 32-bit or 64-bit installation.

3
Create a new connection

In Excel, select Data > Get Data > From Other Sources > From ODBC, choose the configured data source, and enter the required credentials when prompted. Menu names may vary by Excel version.

4
Test the import

In the Navigator window, select a table and choose Load. If the connection fails, record the full error and proceed to the network and TLS checks.

Recreate the Excel connection with the Azure MySQL settings
Free Microsoft Office alternative

Work with Excel-format spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Excel formats, making it easy to move existing files. It does not repair Microsoft Excel's Azure MySQL connection; verify any database connectivity requirements separately.

Open and edit Excel-format workbooks, including XLS and XLSX filesReview spreadsheet data imported from a MySQL databaseUse a familiar interface that makes migration easierWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does the transport stream close when Excel connects to Azure MySQL?

The message can result from network restrictions, incompatible TLS or driver settings, or authentication issues. Check the Azure server's Networking page and compare its security requirements with the MySQL driver's settings.

Which driver should I use for an Azure-hosted MySQL database?

Use a MySQL-compatible connector or ODBC driver that supports the server's authentication and TLS requirements. If using ODBC on Windows, match the driver's bitness to Excel's 32-bit or 64-bit installation.

How do I check whether the Azure firewall allows my connection?

Open the MySQL server's Networking page in the Azure portal. For public access, check that the client's outbound IP is allowed; private access also requires appropriate network routing and DNS.

Where can I find my Excel version and bitness?

In Excel, open File > Account > About Excel. Use the displayed version and 32-bit or 64-bit information when checking driver compatibility.