Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article describes how to add MySQL Database Change Data Capture (CDC) as an event source in Fabric Real-Time hub.
The Azure MySQL Database Change Data Capture (CDC) connector allows you to capture a snapshot of the current data in an Azure MySQL database. You specify the tables to be monitored and get alerted when any subsequent row-level changes to the tables. Once the changes are captured in a stream, you can process this CDC data in real-time and send it to different destinations within Fabric for further processing or analysis.
The Azure MySQL database connector uses the Debezium MySQL connector to capture changes in your MySQL Database. You must define a MySQL user with permissions on all databases that connector monitors. For step-by-step instructions, see Set up MySQL Database (DB).
You must enable binary logging for MySQL replication. The binary logs record transaction updates for replication tools to propagate changes. For example, Azure Database for MySQL.
In the Azure portal, navigate to your Azure MySQL database.
On the left navigation menu, select Server parameters.
Configure your MySQL server with the following properties.
You can get events from an Azure MySQL Database CDC into Real-Time hub in one of the ways:
Sign in to Microsoft Fabric.
If you see Power BI at the bottom-left of the page, switch to the Fabric workload by selecting Power BI and then by selecting Fabric.
Select Real-Time on the left navigation bar.
On the Real-Time hub page, select + Data sources under Connect to on the left navigation menu.
You can also get to the Data sources page from All data streams or My data streams pages by selecting the + Connect data source button in the top-right corner.
On the Data sources page, select Database CDC category at the top, and then select Connect on the MySQL DB (CDC) tile.
Use instructions from the Add Azure MySQL Database CDC as a source section.
In Real-Time hub, select Microsoft sources.
In the Source drop-down list, select Azure MySQL DB (CDC).
For Subscription, select an Azure subscription that has the resource group with your Azure MySQL Database account.
For Resource group, select a resource group that has the database.
For Region, select a location where your database is located.
Now, move the mouse over the name of the Azure MySQL DB CDC source that you want to connect to Real-Time hub in the list of databases, and select the Connect button, or select ... (ellipsis), and then select the Connect button.
To configure connection information, use steps from the Add Azure MySQL DB CDC as a source section.
On the Connect page, select New connection.
In the Connection settings section, do these steps:
For Server, enter the URI for your Azure MySQL server.
For Database, enter the name of your database.
In the Connection credentials section, do these steps:
For Connection, select if there's an existing connection to the MySQL database. If not, keep the default value: Create new connection.
For Authentication kind, select Basic. Currently, only Basic authentication is supported.
Enter values for User name and Password.
Specify whether you want to use an encrypted connection.
Select Connect.
Back on the Connect page, do these steps:
In the Stream details section to the right, do these steps:
Now, select Next at the bottom of the page.
On the Review + connect, review settings, and select Create source.
On the Connect page, select Go to resource to navigate to the Azure PostgreSQL database. Take a note of the server name on the Overview page. It's in the following format: mysqlserver.mysql.database.azure.com
.
On the Review + connect page, if you select Open eventstream, the wizard opens the eventstream that it created for you with the selected Azure MySQL DB CDC as a source. To close the wizard, select Finish or X* in the top-right corner of the page.
In Real-Time hub, select My data streams. To see the new data stream, refresh the page.
For detailed steps, see View details of data streams in Fabric Real-Time hub.
To learn about consuming data streams, see the following articles:
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Data tracking and synchronization with Azure SQL Database - Training
Azure SQL data tracking module that covers data changes tracking. The module explores tools such as change data capture (CDC) and change tracking.
Certification
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Documentation
Add MySQL Database CDC source to an eventstream - Microsoft Fabric
Learn how to add Azure Database for MySQL Change Data Capture (CDC) source to an eventstream.