how to fix connect timeout while copiying from mysql to azure sql using AZURE DATA FACTORY

Arturo Beltran 0 Reputation points
2024-08-20T10:06:29+00:00

I have this error while deploying the task of copiying 5 tables from mysql to azure sql on datafactory

Operation on target ForEach_qx9 failed: Activity failed because an inner activity failed; Inner activity name: Copy_qx9, Error: ErrorCode=MySqlConnectionError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Unable to connect to the mysql server, errorMsg: Connect Timeout expired.,Source=Microsoft.DataTransfer.Connectors.MySqlCore,''Type=MySqlConnector.MySqlException,Message=Connect Timeout expired.,Source=MySqlConnector,''Type=MySqlConnector.MySqlException,Message=Connect Timeout expired.,Source=MySqlConnector,'

The test connection is fine, i can see all my tables and its data on the preview. I did also checked if theres any ban to adf ip but i set mysql so i can connect from any ip as shown:

mysql> SHOW VARIABLES LIKE 'bind_address';

+---------------+-------+

| Variable_name | Value |

+---------------+-------+

| bind_address | * |

+---------------+-------+

What should be the problem?

Azure SQL Database
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
700 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
843 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,814 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.