Forum Discussion
Pbirs auto refresh MySQL
- 1 year ago
Hi eRic_LaU
Since your MySQL data, Power BI Report Server (PBIRS), and SQL service are hosted within the same local network, you do not need an on-premises data gateway for data refreshes. The gateway is typically required when connecting to cloud-based data sources or external systems. Since the connection to MySQL in PBIRS is already tested and successful, the issue likely lies elsewhere. First, double-check the credentials used for the scheduled data refresh in PBIRS, ensuring they are correctly configured and have sufficient permissions to access the MySQL database. Additionally, ensure there are no issues with the firewall or network settings that might block communication between PBIRS and MySQL. If the credentials are fine, inspect the PBIRS logs for any errors related to the refresh process, as they may provide insight into why the refresh completes but no data is updated. Another useful test is to manually refresh the dataset in PBIRS to see if the issue is isolated to the scheduled refresh configuration. If the manual refresh works, the issue might lie in the scheduled refresh settings or configuration. Lastly, verify the connection string used in Power BI Desktop and ensure there are no discrepancies with the settings in PBIRS. By following these steps, you should be able to identify the underlying cause and resolve the issue preventing the data from being updated during scheduled refreshes.
Hi eRic_LaU
If your scheduled refresh in Power BI Report Server (PBIRS) completes successfully but does not update the data, the issue is likely due to PBIRSās limited support for direct data refresh from MySQL. Unlike Power BI Service, which allows scheduled refresh for cloud and on-prem sources, PBIRS does not natively support refresh for MySQL. When you publish a PBIX file connected to MySQL, PBIRS relies on the connection settings used in Power BI Desktop (Report Server version) at the time of publishing, but it does not refresh the data directly from MySQL on schedule. Instead, the refresh process may complete without errors while retaining the old data. To resolve this, you can either manually refresh the PBIX file in Power BI Desktop and re-upload it or use an alternative method like extracting MySQL data into SQL Server or using an ODBC connection, which PBIRS supports for scheduled refresh. Another approach is setting up SQL Server Integration Services (SSIS) or Power Automate to regularly move data from MySQL to a location that PBIRS can refresh from. If automation is necessary, consider using a script or a linked server in SQL Server to act as a bridge between MySQL and PBIRS. Let me know if you need guidance on implementing one of these solutions!