简体   繁体   English

本地镜像 MariaDB 到 Azure SQL?

[英]Mirror on premise MariaDB to Azure SQL?

I need to mirror an on premise MariaDB to an Azure SQL Server.我需要将本地 MariaDB 镜像到 Azure SQL 服务器。 The mirroring needs to happen daily.镜像需要每天进行。 I read through the documentation https://learn.microsoft.com/en-us/azure/mariadb/concepts-data-in-replication but it is not clear to me if this is a fully automated approach.我通读了文档https://learn.microsoft.com/en-us/azure/mariadb/concepts-data-in-replication但我不清楚这是否是一种完全自动化的方法。

I also found https://mariadb.com/kb/en/moving-data-between-sql-server-and-mariadb/ describing a manual approach.我还发现https://mariadb.com/kb/en/moving-data-between-sql-server-and-mariadb/描述了一种手动方法。

Is there an out-of-the-box solution in Azure for this problem? Azure中有针对这个问题的开箱即用的解决方案吗?
How can I achieve such a mirroring?我怎样才能实现这样的镜像?

Thanks谢谢

If you want to copy the data from MariaDB to azure SQL, you can use azure data factory copy activity.如果要将数据从MariaDB复制到azure SQL,可以使用azure数据工厂复制活动。 Go to manage tab click on Linked service you will get below tab Go 管理标签点击链接服务你会得到下面的标签

在此处输入图像描述

In that search for MariaDB and select the MariaDB connecter.在那个搜索 MariaDB 和 select MariaDB 连接器。 Image for reference:图片供参考:

在此处输入图像描述

Configure the service details, test the connection, and create the new linked service.配置服务详细信息、测试连接并创建新的链接服务。

在此处输入图像描述

Create a pipeline and create copy activity create dataset using MariaDB linked service.使用 MariaDB 链接服务创建管道并创建复制活动创建数据集。 To copy data from MariaDB, set the source type in the copy activity to MariaDBSource .要从 MariaDB 复制数据,请将复制活动中的源类型设置为MariaDBSource Sink should be azure SQL as per your requirements.根据您的要求,接收器应为 azure SQL。

Reference: Microsoft Document Copy data from MariaDB - Azure Data Factory & Azure Synapse |参考:Microsoft Document Copy data from MariaDB - Azure Data Factory & Azure Synapse | Microsoft Learn 微软学习

To run this activity daily you can add Schedule trigger.要每天运行此活动,您可以添加计划触发器。 Image for reference:图片供参考:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM