Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Question on Connection string (no replies)

$
0
0
Hi,

As per the documentation https://dev.mysql.com/doc/connector-net/en/connector-net-connection-options.html ,

"The name or network address of the instance of MySQL to which to connect. Multiple hosts can be specified separated by commas."

My connection string with 1 host works well.
But when I add an another host separated by comma, I get the following error.
"Unable to connect to any of the specified MySQL hosts."

Basically I am able to connect to these hosts individually, but when I add them as comma separated it doesn't work.

Please let me know the right way to connect to the replicated servers so that if one goes down the application can always go to the next available one.

Requesting your response asap as we have a blocker on this.

Thanks,
Prem

Viewing all articles
Browse latest Browse all 1451

Trending Articles