This is reference graphical implementation guideline for anyone connecting Power BI Dataflow to Mysql data source running in Linux Server.
You need to use windows machine or create windows vm prior to install power BI gateway.
Install putty to create ssh connection with linux.
To Set up Power BI Gateway, take the following steps:
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.
On your Power BI Cloud Service Open Manage gateways under settings tab ( ** This feature is only available for Pro and above account **)
Your Gateway will be automatically detected if you're using the same Power BI account when setting up your gateway.
Select MySQl in the dropdown option under Data Source Type
Add the localhost Address 127.0.0.1
Add the Database you want to connect
Select the Basic authentication kind and input your MySQL credentials in the Username and Password boxes.
If your connection isn't encrypted, clear Use Encrypted Connection.
Don't Check Skip Test Connection
You Now Added a MySQL as data source.
NOW LETS ADD NEW TABLES AND SCHEDULE REFRESH.
SELECT MySQL Database and insect the same details when Adding the MySQL as data Source.
https://docs.microsoft.com/en-us/power-query/connectors/mysqldatabase