<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Real time connection to MySQL database in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/298112#M8767</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did it work for you?&lt;/P&gt;&lt;P&gt;Can you provide some details of how you did it (kind of a tutorial for using Real-Time dataset and push data via Rest API)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 12:31:56 GMT</pubDate>
    <dc:creator>Franklin1</dc:creator>
    <dc:date>2017-11-07T12:31:56Z</dc:date>
    <item>
      <title>Real time connection to MySQL database</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/206136#M6540</link>
      <description>&lt;P&gt;So I have been using PowerBI Desktop to create a "DAILY SALES" report after connecting to my company's MySQL Database and running a ready made query which produces the desired results. The hourly scheduled refreshes are not enough for management as the data changes literally every minute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a way to get real time results from MySQL into PowerBI or at least used another means or technique to get the updated information from MySQL and somehow stream it to PowerBI Service?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight or ideas to try out would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 22:33:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/206136#M6540</guid>
      <dc:creator>iAm3G</dc:creator>
      <dc:date>2017-07-04T22:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Real time connection to MySQL database</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/207843#M6572</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;So I have been using PowerBI Desktop to create a "DAILY SALES" report after connecting to my company's MySQL Database and running a ready made query which produces the desired results. &lt;STRONG&gt;The hourly scheduled refreshes&lt;/STRONG&gt; are not enough for management as the data changes literally every minute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone found a way to get real time results from MySQL into PowerBI or at least used another means or technique to get the updated information from MySQL and somehow stream it to PowerBI Service?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any insight or ideas to try out would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;MySQL is not in the &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-use-directquery/" target="_self"&gt;DirectQuery mode list&lt;/A&gt;&amp;nbsp;and&amp;nbsp;to lift the 8 times refreshes limitation you may consider to purchase a Power BI Premium license, see&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-premium/#capacity-tiers" target="_self"&gt;Power BI Premium Capacity Tiers&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach would be using &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-real-time-streaming/" target="_self"&gt;real-time datasets&lt;/A&gt; and push data via REST API.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 08:55:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/207843#M6572</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-07-07T08:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Real time connection to MySQL database</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/207859#M6573</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;So I have been using PowerBI Desktop to create a "DAILY SALES" report after connecting to my company's MySQL Database and running a ready made query which produces the desired results. &lt;STRONG&gt;The hourly scheduled refreshes&lt;/STRONG&gt; are not enough for management as the data changes literally every minute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a way to get real time results from MySQL into PowerBI or at least used another means or technique to get the updated information from MySQL and somehow stream it to PowerBI Service?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight or ideas to try out would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt;&lt;/P&gt;&lt;P&gt;MySQL is not in the &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-use-directquery/" target="_self"&gt;DirectQuery mode list&lt;/A&gt;&amp;nbsp;and&amp;nbsp;to lift the 8 times refreshes limitation you may consider to purchase a Power BI Premium license, see&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-premium/#capacity-tiers" target="_self"&gt;Power BI Premium Capacity Tiers&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another approach would be using &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-real-time-streaming/" target="_self"&gt;real-time datasets&lt;/A&gt; and push data via REST API.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Premium is not an option. I have been looking into the REST API with real-time datasets. This will in-fact be my solution going forward. Now I just have to figure out how I can use the DELETE ROWS instruction without unecessarily registering an APP which I will not be creating. Any ways I will mark your response as the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 09:18:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/207859#M6573</guid>
      <dc:creator>iAm3G</dc:creator>
      <dc:date>2017-07-07T09:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Real time connection to MySQL database</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/208415#M6591</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;So I have been using PowerBI Desktop to create a "DAILY SALES" report after connecting to my company's MySQL Database and running a ready made query which produces the desired results. &lt;STRONG&gt;The hourly scheduled refreshes&lt;/STRONG&gt; are not enough for management as the data changes literally every minute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone found a way to get real time results from MySQL into PowerBI or at least used another means or technique to get the updated information from MySQL and somehow stream it to PowerBI Service?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any insight or ideas to try out would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;MySQL is not in the &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-use-directquery/" target="_self"&gt;DirectQuery mode list&lt;/A&gt;&amp;nbsp;and&amp;nbsp;to lift the 8 times refreshes limitation you may consider to purchase a Power BI Premium license, see&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-premium/#capacity-tiers" target="_self"&gt;Power BI Premium Capacity Tiers&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach would be using &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-service-real-time-streaming/" target="_self"&gt;real-time datasets&lt;/A&gt; and push data via REST API.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Premium is not an option. I have been looking into the REST API with real-time datasets. This will in-fact be my solution going forward. Now I just have to figure out how I can use the DELETE ROWS instruction &lt;STRONG&gt;without unecessarily registering an APP&lt;/STRONG&gt; which I will not be creating. Any ways I will mark your response as the solution.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34960"&gt;@iAm3G&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;As Power BI authentication is integrated with Azure AD, it is mandatory to register and use the &lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-integrating-applications" target="_self"&gt;Azure AD App&lt;/A&gt;@. If you have any further question, you can post it in a new thread and&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/273"&gt;@me&lt;/a&gt;. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 01:12:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/208415#M6591</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-07-10T01:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Real time connection to MySQL database</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/298112#M8767</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did it work for you?&lt;/P&gt;&lt;P&gt;Can you provide some details of how you did it (kind of a tutorial for using Real-Time dataset and push data via Rest API)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 12:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/298112#M8767</guid>
      <dc:creator>Franklin1</dc:creator>
      <dc:date>2017-11-07T12:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Real time connection to MySQL database</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/299776#M8822</link>
      <description>&lt;P&gt;I ended up using PHP and cURL: Below is a complete PHP script from deleting existing data and posting new data (Enable keep historical data in streaming data set) your username must be an email from the AZURE ACTIVE DIRECTORY (xxxxx.onmicrosoft.com) for this SILENT LOGON to work. You need to create an AZURE APP to obtain CLIENT ID AND SECRET Use POSTMAN to get the correct POST / DELETE information when exporting from POSTMAN to cURL $username = 'yourUsername'; $password = 'yourPassword'; $url = '&lt;A href="https://login.windows.net/yourCompanyID/oauth2/token" target="_blank"&gt;https://login.windows.net/yourCompanyID/oauth2/token&lt;/A&gt;'; $params = array('client_id' =&amp;gt; 'yourClientAppID', 'client_secret' =&amp;gt; 'yourClientSecret', 'scope' =&amp;gt; 'openid', 'resource' =&amp;gt; '&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;', 'grant_type' =&amp;gt; 'password', 'username' =&amp;gt; $username, 'password' =&amp;gt; $password ); $ch = curl_init(); curl_setopt_array($ch, array(CURLOPT_URL =&amp;gt; $url, CURLOPT_RETURNTRANSFER =&amp;gt; true, CURLOPT_ENCODING =&amp;gt; '', CURLOPT_MAXREDIRS =&amp;gt; 10, CURLOPT_TIMEOUT =&amp;gt; 30, CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1, CURLOPT_POST =&amp;gt; true, CURLOPT_POSTFIELDS =&amp;gt; $params )); $output = curl_exec($ch); $info = curl_getinfo($ch); $error = curl_error($ch); curl_close($ch); if ($info['http_code'] === 200) { header('Content-Type: ' . $info['content_type']); $response = json_decode($output, true); $accessToken = $response['access_token']; $authorization = 'Authorization: Bearer ' . $accessToken; // DELETE TABLE CONTENTS $ch1 = curl_init(); curl_setopt_array($ch1, array(CURLOPT_URL =&amp;gt; '&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/yourCompanyIDinPowerBI/datasets/yourDataSetID/tables/RealTimeData/rows" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/yourCompanyIDinPowerBI/datasets/yourDataSetID/tables/RealTimeData/rows&lt;/A&gt;', CURLOPT_RETURNTRANSFER =&amp;gt; true, CURLOPT_ENCODING =&amp;gt; '', CURLOPT_MAXREDIRS =&amp;gt; 10, CURLOPT_TIMEOUT =&amp;gt; 30, CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&amp;gt; 'DELETE', CURLOPT_HTTPHEADER =&amp;gt; array($authorization, 'cache-control: no-cache') )); $output1 = curl_exec($ch1); $info1 = curl_getinfo($ch1); $error1 = curl_error($ch1); curl_close($ch1); if ($error1) { echo $error1; } // DELETE TABLE CONTENTS END // POST NEW CONTENT $ch2 = curl_init(); $data = $resArray; curl_setopt_array($ch2, array(CURLOPT_URL =&amp;gt; '&lt;A href="https://api.powerbi.com/beta/YourCompanyIDinPowerBI/datasets/YourDataSetID/rows?key=YourKey" target="_blank"&gt;https://api.powerbi.com/beta/YourCompanyIDinPowerBI/datasets/YourDataSetID/rows?key=YourKey&lt;/A&gt;', CURLOPT_RETURNTRANSFER =&amp;gt; true, CURLOPT_ENCODING =&amp;gt; '', CURLOPT_MAXREDIRS =&amp;gt; 10, CURLOPT_TIMEOUT =&amp;gt; 30, CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =&amp;gt; 'POST', CURLOPT_POSTFIELDS =&amp;gt; $data, CURLOPT_HTTPHEADER =&amp;gt; array('Content-Type: application/json', 'Content-Length: ' . strlen($data), 'cache-control: no-cache') )); $output2 = curl_exec($ch2); curl_close($ch2); // POST NEW CONTENT END //var_export ($output2); } ?&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 09:20:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/299776#M8822</guid>
      <dc:creator>iAm3G</dc:creator>
      <dc:date>2017-11-09T09:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Real time connection to MySQL database</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/507277#M15627</link>
      <description>&lt;P&gt;Thanks for sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont have visual studio license which is required in following step:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-get-token" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/walkthrough-push-data-get-token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we avoid it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 16:25:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Real-time-connection-to-MySQL-database/m-p/507277#M15627</guid>
      <dc:creator>sumnesh</dc:creator>
      <dc:date>2018-09-04T16:25:04Z</dc:date>
    </item>
  </channel>
</rss>

