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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ramakrid
New Member

Using MySQL cluster as my datasource.

MySQL is my datasource. We so far have been using a single instance and connection is smooth. Now, we want to setup MySQL as a cluster so that we can improve reliability. How can I use MySQL cluster as my data source ? 

 

We were thinking about using this approach 

https://dev.mysql.com/doc/x-devapi-userguide/en/connecting-dns-srv.html

to setup multiple nodes. 

 

Any pointers or suggestion for a different approach to have a reliable MySQL and at the same time connect to Power BI seamlessly would be very helpful. 

1 REPLY 1
v-alq-msft
Community Support
Community Support

Hi, @ramakrid 

 

I'd like to suggest you use 'Python script' connector to do it. As is said in the document, you may try the Python codes.

Python Code

 

 

session = mysqlx.get_session(host="tcp.example.com", dns_srv=True)

 

 

For further information, you may refer the following document.

Run Python scripts in Power BI Desktop 

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.