cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
imj00 Occasional Visitor
Occasional Visitor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to connect to a datasource with SSL

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

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: How to connect to a datasource with SSL

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

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team
Community Support Team

Re: How to connect to a datasource with SSL

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

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.