Skip to content

This is reference graphical implementation guideline for anyone connecting Power BI Dataflow to MySQL data source running in Linux Server.

License

Notifications You must be signed in to change notification settings

Abdullahi-Ahmed/PowerBI-DataFlow_with_MySQL-Linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Tutorial: Connect MySQL data source in Linux Server to Power BI Dataflow

This is reference graphical implementation guideline for anyone connecting Power BI Dataflow to Mysql data source running in Linux Server.

Prerequisites

You need to use windows machine or create windows vm prior to install power BI gateway.
Install putty to create ssh connection with linux.

Setting Up power BI gateway

To Set up Power BI Gateway, take the following steps:

  1. Download Power BI Gateway from Power BI service (online)
    image

  2. After downloading the gateway set up by signing in
    image

  3. By clicking sign in dialog page will appear for email
    image

  4. Sign in with your power BI credential

  5. Once done. Select OK.
    image

Setting up SSH Tunnel

At the moment we can't run Power BI Gateway in Linux Server where our MySQL data source is located thus create SSH tunneling. SSH is a secure Shell that uses public-key crytography to securely exhange information between different network over an insecure channel i.e Internet. An SSH tunnel enable to link a port on your local machine (in our case windows) to a port on a remote host (Linux Server). This Creates Communications from remote machine to our local machine through the port which is encrypted by the SSH Connection.

  1. Open ** Putty ** and Type Ip address of your Linux Server.
    image

  2. Click Tunnels under SSH tab and Add source port with Destination address to be localhost.
    image

  3. Sign in to your Linux Server Credentials and ** Keep IT Running**
    image

Creating DataFlow Pipeline

  1. On your Power BI Cloud Service Open Manage gateways under settings tab ( ** This feature is only available for Pro and above account **)
    image

  2. Your Gateway will be automatically detected if you're using the same Power BI account when setting up your gateway.
    image

  3. Add Data Source
    image

  4. Fill the Dialog page
    image

  5. Select MySQl in the dropdown option under Data Source Type

  6. Add the localhost Address 127.0.0.1

  7. Add the Database you want to connect

  8. Select the Basic authentication kind and input your MySQL credentials in the Username and Password boxes.

  9. If your connection isn't encrypted, clear Use Encrypted Connection.

  10. Don't Check Skip Test Connection

You Now Added a MySQL as data source.
NOW LETS ADD NEW TABLES AND SCHEDULE REFRESH.

image

SELECT MySQL Database and insect the same details when Adding the MySQL as data Source.
image

image

Selectting a refresh options
image

Further Reading

https://docs.microsoft.com/en-us/power-query/connectors/mysqldatabase

About

This is reference graphical implementation guideline for anyone connecting Power BI Dataflow to MySQL data source running in Linux Server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published