Forum Discussion

imj00's avatar
imj00
New Member
7 years ago
Solved

How to connect to a datasource with SSL

Hello Guys! I'm trying to connect to a datasource (MySQL Database) that uses SSL.

 

Question 1: How can I input the SSL Certificate.

Question 2: When trying to get data to that datasource it throws an error "MySQL: Reading from the stream has failed" I am guessing that this is due to the SSL Certificate that is required to connect to that db.

 

Thanks in advance

  • Hi imj00 ,

    Normally, there is no SSL certification when you connect My SQL Database in Power BI Desktop.

    When the "encrypt connection" option is selected -- which it is by default -- the connection won't be established unless there's a server-side SSL certificate. This should ensure that the data is encrypted.

    Have you used SSL certification when you use My SQL Database?

    If not, you should configure MySQL to Use Encrypted Connections firstly. Please refer to this article.

    In addition, make sure that the certificate used by your data source is within the Trusted Root Certification Authorities store of the machine running the Power BI gateway, there is an old blog stating this process.
    After installing SSL certificate, add your data source within gateway.

    Moreover, there is a similar thread you could refer to.

    Hope this can make sense of you!

    Best  Regards,

    Cherry

     

4 Replies

  • v-piga-msft's avatar
    v-piga-msft
    Resident Rockstar

    Hi imj00 ,

    Normally, there is no SSL certification when you connect My SQL Database in Power BI Desktop.

    When the "encrypt connection" option is selected -- which it is by default -- the connection won't be established unless there's a server-side SSL certificate. This should ensure that the data is encrypted.

    Have you used SSL certification when you use My SQL Database?

    If not, you should configure MySQL to Use Encrypted Connections firstly. Please refer to this article.

    In addition, make sure that the certificate used by your data source is within the Trusted Root Certification Authorities store of the machine running the Power BI gateway, there is an old blog stating this process.
    After installing SSL certificate, add your data source within gateway.

    Moreover, there is a similar thread you could refer to.

    Hope this can make sense of you!

    Best  Regards,

    Cherry

     

    • gtexeira's avatar
      gtexeira
      Frequent Visitor

      Has anyone been able to get this working?  I click go to solution and it loops back to th question.

  • v-piga-msft's avatar
    v-piga-msft
    Resident Rockstar

    Hi imj00 ,

    Have you solved your problem?

    If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

    If you still need help, please feel free to ask.

    Best  Regards,

    Cherry

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

    recently I am trying to connect (Azure Database for MySQL server) which is SSL connection based for powerBi refresh scheduler.

    but i am unable to connect, it is asking for SSL connection is required. please specify ssl connection and try again.

    1. I am not getting how to provide ssl connection in powerBi.