How to connect to a remote MySQL from an Azure SQL server/database

CarlsWhishde

sorry if title is not so clear, probably I am not finding what I need due I do not know how to search

I have few MySQL servers is separated online servers (from different wordpress) and I want to load some of the data on those databases/tablets into a SQL database located on Azure.

inside Azure portal itself I do not see where to establish external connections, neither at server level, neither at database level

I download and install Microsoft SQL Server Management Studio, connect to the server, I can see my databse and the master one, Security with logins, and Integration Service Catalog, nothing else.

I was looking for something like: https://www.jetbrains.com/help/go/db-tutorial-connecting-to-ms-sql-server.html#step-3-connect-to-microsoft-sql-server-with-datagrip but nowhere ...

maybe something like this: https://www.devart.com/odbc/mysql/docs/microsoft_sql_server_manager_s.htm but no Servers objects option available on my SSMS

Can be this done?

Note: Azure database is a basic wfor now, if that is a limitation

O. Jones

Some choices.

  1. In your SQL Server Management Studio create a linked server pointing to each MySQL instance. You found the instructions for that. https://www.devart.com/odbc/mysql/docs/microsoft_sql_server_manager_s.htm But it probably will not work in Azure SQL Server; you don't have access to the underlying Windows OS to install stuff like MySQL ODBC drivers, which you need. (You could ask Azure techsupport if they can help.)

  2. In each MySQL instance, try creating a federated table connection to appropriate table in SQL Server. That cross-vendor federation stuff only works in MariaDB, however; MySQL's federation only goes MySQL <--> MySQL.

  3. Write yourself a purpose-built extract / transform / load (ETL) program, and arrange to run it every so often. Program it to connect to all the servers involved, retrieve the data needing to be transferred from your MySQL servers, and update / insert that data on the SQL server.

  4. (edit) You may be able to use command-line SQL client programs. mysqldump, with its --compatible option, may generate usable INSERT statements in a file. You then may be able to use sqlcmd to run those INSERTs on your Azure server. It's going to take some hacking, and may take using sed(1) or awk(1) to make the MySQL output compatible with SQL Server.

I believe the third option is the most robust one for production use.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Connect to MySQL from remote machine

Connect to remote MySQL from CircleCI

How to connect to remote mysql DB from android app

Azure: How to beste connect SQL-Database with MySQL/Webservice

Cannot connect to MySQL from remote server

How to Connect Amazon RDS SQL from Azure Devops for Database Automation

How to connect to Azure SQL database from Django app on Linux VM

How to connect from Azure function app to my SQL Server?

How to connect to remote mysql using sqlyoug or heidisql

How to connect to docker mysql container on remote machine

How to remote connect MySQL on Raspberry Pi?

how to connect remote docker container mysql server

Cant connect to Azure SQL from Azure function

How to connect to Azure SQL with JDBC

How to connect to remote hive server from spark

How to connect to remote SQL Server from WSL2 using ODBC?

How to connect to remote MS SQL Server from python using py(py)odbc

MySQL remote connect with JasperStudio

Connect to a remote mysql server

How to connect to Azure SQL database from multiple Azure Functions TypeScript API endpoints

Connect to SQL Server from Azure function by KeyVault

How Connect to a Azure Windows VM and run a remote script with PowerShell?

How to connect from tarantool to mysql?

PHP Mysql iis VPS - connect from remote server

MySQL remote hosted on virtual Server - can't connect from Mac

failure to connect to mysql from java locally while remote connection works

Cant connect ot remote MySQL DataBase from JavaFX application

Setup MS SQL Remote Connection & Connect From Linux Hosting With PHP

How to connect to a Azure SQL Server through Python