Backgroud
I am developing a .net project, which works with EF6 and MySQL DB. For High Availability, I am using Galera cluster, so I have 3 MySQL Master nodes up and running: master1, master2 and master3.
According to connectionstring.com I should be able to use the following connection string:
Server=master1, master2, master3;Database=myDataBase;
Uid=myUsername;Pwd=myPassword;
I have tried the above, and it does not work... I have seen this bug which explains multi-host connection string does not work.
Question
According to this link I can use mysql:loadbalance:
in front of my JDBC connection string. The problem is I don't know which MySQL Connector am I using? I believe I have installed the Standard/Default Nuget Packages for .net (MySQL.Data and MySQL.Data.EntityFramework). Any idea which MySQL Connector come with the above packages?
Any idea how can I use MySQL connector to load balance/connect the 3 Master nodes?