Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
keel21
Regular Visitor

SSH Tunnel

Hello

 

A few questions about working with Mysql in the cloud as our company has our database in a cloud server

I'm aware power bi doesn't natively connect to these databases

 

The workaround I've read about is creating a SSH Tunnel through Putty, port forwarding to localhost and then creating a gateway to keep this connection open. Here is the source for that

https://www.a2hosting.com/kb/developer-corner/mysql/remote-mysql-connections

 

Questions about this:

Can this be done on a virtual machine, allowing the gateway to always be open, as opposed to on a laptop or computer that could be shut down, thus closing the gateway?

 

Can you create multiple connections to different cloud servers on the same computer or vm, such as port forward server 1 to localhost:3306 and server 2 to localhost:3307? Or will I need a new machine for each connection?

1 ACCEPTED SOLUTION

that's a loaded question.  Guidance for gateways differs massively depending on the expected workload. Direct Query connections require (ultra) fast network interfaces. Import Mode connections require 16+ GB of memory and ample compute cores and available disk space. Do not try to put a gateway onto a VM that also does other stuff (like a SQL Server instance) - they will make each other's lives miserable.
Another guidance - place your gateway VM as close as possible to your main data sources to reduce the impact of network lag.

View solution in original post

6 REPLIES 6
lbendlin
Super User
Super User

Power BI doesn't (need to) know anything about your VPN. As long as the Azure service can see your data source ( if necessary with brokerage by the gateway) you can implement whatever . It becomes more of a maintenance effort question.

For sure. I guess my question is more so in regards to do I need a new machine for each SSH tunnel , or can I have 2 different servers forwarded to localhost on my machine, and tell Power BI to use one for a report and the second for another?

you can do all of that on a single machine but that machine better be online 24/7 unless you have specific refresh schedules that only fall into your working hours. In other words doing this on your PC is technically possible but highly inadvisable.

Thank you for the help. If I may, Ill ask one more follow up, as I am trying to figure out the path ill take helping others with cloud based servers. 

 

If not on my machine, what would be the best way to set up the gateway? Is there a best practice here? Thank you again

that's a loaded question.  Guidance for gateways differs massively depending on the expected workload. Direct Query connections require (ultra) fast network interfaces. Import Mode connections require 16+ GB of memory and ample compute cores and available disk space. Do not try to put a gateway onto a VM that also does other stuff (like a SQL Server instance) - they will make each other's lives miserable.
Another guidance - place your gateway VM as close as possible to your main data sources to reduce the impact of network lag.

Appreciate all the help sir

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.