Costa Rica
Last updated: 2025-07-17
Securely connect your remote-hosted MySQL database to Microsoft Fabric, leveraging encryption to protect your data.
- MySQL database connector overview
- Set up your MySQL database connection
- Security in Microsoft Fabric
- Microsoft Fabric end-to-end security scenario
-
Step 1: Prepare Your MySQL Database: Make sure that any prerequisites for the MySQL database are installed or set up before connecting
- Ensure MySQL is Accessible: Verify that your MySQL database is accessible from the internet. You might need to configure your firewall settings to allow connections from Microsoft Fabric's IP ranges.
- Create a MySQL User for Fabric: Create a dedicated MySQL user with the necessary permissions to access the required databases and tables.
-
Step 2: Set Up the On-Premises Data Gateway: This gateway can be used by Data Factory dataflows and data pipelines to securely ingest and transform data
- Download and Install the Gateway:
- Go to the Microsoft Data Gateway download page and download the on-premises data gateway.
- Install the gateway on a machine that has network access to your MySQL database.
- Configure the Gateway:
- During installation, sign in with your Microsoft Entra ID (formerly Azure AD) account.
- Register the gateway with your Microsoft Fabric environment.
- Download and Install the Gateway:
-
Step 3: Configure the MySQL Connector in Microsoft Fabric
-
Open Microsoft Fabric: Navigate to the Microsoft Fabric portal and go to the Data Factory section.
-
Create a New Dataflow: In Data Factory, create a new dataflow and select the option to add a new data source. This allows you to ingest, prepare, and transform data
-
Select MySQL Connector: Choose the MySQL connector from the list of available connectors.
-
Enter Connection Details:
- Provide the server name, database name, and the credentials for the MySQL user you created earlier.
- Ensure that the connection string includes SSL parameters to enforce encryption.
- Secure the Connection
- All interactions with Microsoft Fabric are encrypted by default and authenticated using Microsoft Entra ID. Data at rest is also stored encrypted.
- Ensure that the communication between your MySQL database and Microsoft Fabric travels through secure channels, leveraging the encryption you already have in place between the cloud and your local network.
- Verify SSL/TLS Encryption: Ensure that your MySQL server is configured to support SSL/TLS connections. You might need to update your MySQL configuration file (
my.cnformy.ini) to enable SSL. - Test the Connection: Use the test connection feature in Microsoft Fabric to ensure that the connection is successful and encrypted.
-
-
Step 4: Create and Schedule Dataflows
- Design Your Dataflow: Use Power Query to design your dataflow, specifying the tables and columns you want to import from MySQL.
- Transform Data as Needed: Apply any necessary transformations to your data within the dataflow.
- Schedule Data Refresh: Set up a schedule for your dataflow to refresh the data at regular intervals.
-
Step 5: Monitor and Maintain
- Monitor Dataflows: Regularly monitor the status of your dataflows to ensure they are running smoothly.
- Update Gateway and Connectors: Keep your on-premises data gateway and MySQL connectors up to date to ensure compatibility and security.