Can't connect to MySQL server on 'ip:port' (10060)".
Are you sure about the used IP port 10060? Default is 3306.
Can you connect your MySQL Server other tools like Wockbench?
Can you run a simple SELECT statement against the linked server?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I am attempting to use a SQL Server 2014 linked server to connect to a MySQL 8 instance. My single openquery insert statement works fine, but when I try to run multiple insert statements to insert data to multiple tables, I receive a generic error message. Sometimes it works without error during off-peak hours. The error message I receive is:
OLE DB provider "MSDASQL" for linked server "MYSQL-LINKED-SERVER" returned message "[MySQL][ODBC 8.4(w) Driver]Lost connection to MySQL server at 'waiting for initial communication packet', system error: 10060".
This is the insert statement I am using:
INSERT INTO OPENQUERY([MYSQL-LINKED-SERVER],'SELECT id, name, state_date, created_at, updated_at, created_byFROM Db1.table1') SELECT id, name, state_date, created_at, updated_at, created_by FROM source a
I have already tried modifying some settings on the Windows server hosting the queries, and I have enabled certain flags on the MySQL side. Can someone please help me pinpoint what could be causing the issue?
Can't connect to MySQL server on 'ip:port' (10060)".
Are you sure about the used IP port 10060? Default is 3306.
Can you connect your MySQL Server other tools like Wockbench?
Can you run a simple SELECT statement against the linked server?