Multiple master hosts in JDBC connection string
Posted by: Serhiy Chupov
Date: July 14, 2014 08:14AM

Hi there,

My problem is the following: I need to set multiple hosts in JDBC connection string, like jdbc:mysql://192.168.0.1,192.168.0.2/mydb, but every one of them should be a master, not a slave, for me to have opportunity to write to second host if the first fails. Also they will all be working on the same port, so I would like to write port number just one time, but if it's impossible, string like jdbc:mysql://192.168.0.1:3306,192.168.0.2:3306/mydb also fits.

Thanks in advance

Options: ReplyQuote


Subject
Written By
Posted
Multiple master hosts in JDBC connection string
July 14, 2014 08:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.