<?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: Data Refresh Failed: mysql doesn't support encrypted connections in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4069326#M36216</link>
    <description>&lt;P&gt;Can you clarify where I could do that? I am using power query to query the data. I am connecting it to the mysql database. MySQL.Database("rm XXXXXX", "coordination", [ReturnSingleDatabase=true])&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 14:11:46 GMT</pubDate>
    <dc:creator>smallfires0628</dc:creator>
    <dc:date>2024-07-30T14:11:46Z</dc:date>
    <item>
      <title>Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4068683#M36206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to fix this problem for a while, and I can't seem to find where the issue is.&lt;/P&gt;&lt;P&gt;I have a report connected to Alibaba Cloud's mysql, and everything works fine in PowerBI desktop. I refresh the report and everything is okay. But once I published it to powerbi service and tried to refresh there, I get the following error message: "Data source error: The MySql source doesn't support encrypted connections. (Source at ......). &lt;SPAN&gt;The exception was raised by the IDbCommand interface."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Currently, I am not using a data gateway, as I am aware that cloud connections don't require one. I've tried switching between encrypted and not encrypted connections, but the error remains the same regardless of which one I've switched on. I've also tried to use the on-premise data gateway instead, but I can't cuz I'm not an admin user. I am using power query to query the data with the mysql database. Here's the m query code:&lt;BR /&gt;MySQL.Database("rm XXXXXX", "coordination", [ReturnSingleDatabase=true])&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 14:09:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4068683#M36206</guid>
      <dc:creator>smallfires0628</dc:creator>
      <dc:date>2024-07-30T14:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4069259#M36213</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try explicitly setting the connection string to not use SSL by adding SslMode=none; to it.&lt;/P&gt;&lt;P&gt;Example: Server=yourserver;Database=yourdatabase;User=youruser;Password=yourpassword;SslMode=none;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 13:44:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4069259#M36213</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-07-30T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4069326#M36216</link>
      <description>&lt;P&gt;Can you clarify where I could do that? I am using power query to query the data. I am connecting it to the mysql database. MySQL.Database("rm XXXXXX", "coordination", [ReturnSingleDatabase=true])&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 14:11:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4069326#M36216</guid>
      <dc:creator>smallfires0628</dc:creator>
      <dc:date>2024-07-30T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4069636#M36217</link>
      <description>&lt;LI-CODE lang="markup"&gt;MySQL.Database("rm XXXXXX", "coordination", [ReturnSingleDatabase=true, Encrypted=false, SslMode="none"])
])&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:01:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4069636#M36217</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-07-30T17:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4070389#M36223</link>
      <description>&lt;P&gt;I tried but it sent me the following error:&lt;/P&gt;&lt;P&gt;DataSource.Error: MySQL: This function doesn't support the query option 'Encrypted' with value 'false'.&lt;BR /&gt;Details:&lt;BR /&gt;FALSE&lt;BR /&gt;&lt;BR /&gt;DataSource.Error: MySQL: This function doesn't support the query option 'Sslmode' with value '"none"'.&lt;BR /&gt;Details:&lt;BR /&gt;none&lt;BR /&gt;It seems like both parameters don't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with PBI Version: 2.131.1203.0 64-bit (July 2024)&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 05:19:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4070389#M36223</guid>
      <dc:creator>smallfires0628</dc:creator>
      <dc:date>2024-07-31T05:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4071013#M36227</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81736" data-lia-user-login="aduguid" class="lia-mention lia-mention-user"&gt;aduguid&lt;/a&gt;&amp;nbsp;,thanks for your concern about this issue.&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Your answer is excellent!&lt;BR /&gt;And I would like to share some additional solutions below.&lt;BR /&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="694437" data-lia-user-login="smallfires0628" class="lia-mention lia-mention-user"&gt;smallfires0628&lt;/a&gt;&amp;nbsp;.I am glad to help you.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Currently, when MySQL is used as a data source to connect to Power BI, this is the general problem that occurs&lt;BR /&gt;For you to complete the data quota in Power BI&lt;BR /&gt;Desktop, the syntax for My SQL should be like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source=MySQL.Database(server
Database(server, db, [ReturnSingleDatabase=true,CreateNavigationProperties=false,Query= sql
])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;The parameters here, server should be the Aliyun server address, db should be the database on the server, and sql is the query that must be executed.&lt;BR /&gt;You may also need to configure SSL, generate SSL certificates and configure the MySQL server to use them!&lt;BR /&gt;I've found some issues that have been resolved, as well as articles that I hope will help you.&lt;BR /&gt;URL:&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Power-BI-Gateway-MySQL-source-doesn-t-support-encrypted/m-p/2024547" target="_blank"&gt;&lt;SPAN&gt;Solved: Power BI Gateway MySQL source doesn't support encr... - Microsoft Fabric Community&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://blog.flowpoint.ai/post/v2/solved-power-bi-gateway-mysql-source-doesnt-support-encrypted-connections/" target="_blank"&gt;&lt;SPAN&gt;[solved] Power BI Gateway – MySQL source doesn’t support encrypted connections | Flowpoint&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/connectors/mysql-database" target="_blank"&gt;&lt;SPAN&gt;Power Query MySQL database connector - Power Query | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Carson Jian,&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 09:35:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4071013#M36227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-31T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307281#M38740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="694437" data-lia-user-login="smallfires0628" class="lia-mention lia-mention-user"&gt;smallfires0628&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you found a solution to this? Stuck on exactly the same issue...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 08:52:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307281#M38740</guid>
      <dc:creator>tom_pykes</dc:creator>
      <dc:date>2024-11-29T08:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307293#M38741</link>
      <description>&lt;P&gt;Yes I found a solution. I have to specify for it to be non-encrypted. I do it by downloading the MySQL ODBC driver to control encryption settings.&lt;BR /&gt;I specified the connection string through Power Query itself. Here's the m-query code:&lt;BR /&gt;connectionString = "Driver={MySQL ODBC 9.0 Unicode Driver};Server=rm-XXXXX;Database=...;User=...;Option=3;SslMode=DISABLED;",&lt;BR /&gt;Source = Odbc.Query(connectionString, "SELECT * FROM table")&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:00:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307293#M38741</guid>
      <dc:creator>smallfires0628</dc:creator>
      <dc:date>2024-11-29T09:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307363#M38744</link>
      <description>&lt;P&gt;Thanks for your quick response &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="694437" data-lia-user-login="smallfires0628" class="lia-mention lia-mention-user"&gt;smallfires0628&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;Works in PBI Desktop.&lt;BR /&gt;This implies set-up of a gateway I guess?&lt;BR /&gt;Or how do you connect from the service?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:42:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307363#M38744</guid>
      <dc:creator>tom_pykes</dc:creator>
      <dc:date>2024-11-29T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307497#M38746</link>
      <description>&lt;P&gt;I am using cloud connections, so no data gateway needed for that&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 11:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307497#M38746</guid>
      <dc:creator>smallfires0628</dc:creator>
      <dc:date>2024-11-29T11:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Refresh Failed: mysql doesn't support encrypted connections</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307705#M38750</link>
      <description>&lt;P&gt;Thanks so much for your replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I see... it's a bit confusing in the settings interface.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Details:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyway, don't know if you got the same issue but it asks for credentials and doesn't want to save after I filled them in. Also, it gives the impression of wanting to use an on-premises gateway (grayed out)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What ODBC-version are you working on?&lt;BR /&gt;Only difference with your query is the 9.0 vs 9.1 (only one available on Oracle)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;connectionString = "Driver={MySQL ODBC 9.1 Unicode Driver};Server=my_server;Database=my_db;User=my_user;Option=3;SslMode=DISABLED;",
Source = Odbc.Query(connectionString, "SELECT * FROM items")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; works fine in PBI Desktop&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 13:57:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Data-Refresh-Failed-mysql-doesn-t-support-encrypted-connections/m-p/4307705#M38750</guid>
      <dc:creator>tom_pykes</dc:creator>
      <dc:date>2024-11-29T13:57:00Z</dc:date>
    </item>
  </channel>
</rss>

