MySQL Connectivity to Power BI and Schedule Refresh - CloudFronts

MySQL Connectivity to Power BI and Schedule Refresh

Posted On September 22, 2015 by Posted in 


MySQL, Power BI Desktop Tool, Power BI Personal Gateway

Purpose of the setup:

MySQL is one of the popular open source database used right after Microsoft SQL and Oracle. Power BI being one of the most powerful tool used for reporting and data visualization with different data sources supported.

Here we will be looking on how to connect and refresh on-premise MySQL database to Power BI.

Steps for establishing connectivity between MySQL and Power BI:

  1. Here we have one database created in MySQL named ‘emp_details’ which has table-‘emp_salary’ with 4 records.
  2. 1


  3. Now, we will pull this MySQL data to Power BI and create a .pbix file
  4. For that first we will open Power BI Desktop tool and click on Get Data
  5. 3

  6. Here we will select ‘Database’ option on the right hand side and then select the ‘MySQL Database’ and click on ‘Connect’
  7. Then it will ask for server name and database. Enter the appropriate server name and database (which you want). And then click OK.
  8. 4

  9. Now, it will ask for the username and Password. Then click on Connect
  10. 5

  11. Now the list of all database and its related table will appear. You select your required table and click on Load.
  12. 6

  13. Now, create a report in Power BI Desktop tool and save it with some appropriate name.
  14. Then, login to Power BI online and using GetData option pull the .pbix file you have created.
  15. You will find the .pbix file under Dataset on left hand side of the screen. Now, create a simple report and pin it to dashboard.
  16. Then schedule Refresh and click to Apply.
  17. 7

  18. Now when we select the Dataset and click on Refresh Now , will get
  19. 8

  20. Now, to check the Refreshing of data add a new data or update the Existing one in your MySQL table.
  21. 9

  22. Now, again go to Power BI Online and click on the Dataset and select Refresh Now .
  23. 10

  24. You will find the changes reflected on your dashboard.
  25. 11

You can read more about scheduling on-premise data sources in our previous blog given below:

Share Story :