MySQL Forums
Forum List  »  Connector/JDBC and Java

Can you create a MySQL JDBC connection string that has different hosts but the same port?
Posted by: Mike Love
Date: October 05, 2017 02:03PM

Currently, I am unable to get this to work! Here is what I have:

jdbcUrl": "jdbc:mysql://sandbox.mikestest.com:20192,sandbox2.mikestest.com:20192/test?secondsBeforeRetryMaster=5&useSSL=false&user=mike&password=mike"

I only have the first host running and I get a 500 error when trying to write to the database. This same setup works fine when I am on different ports.

Options: ReplyQuote


Subject
Written By
Posted
Can you create a MySQL JDBC connection string that has different hosts but the same port?
October 05, 2017 02:03PM


Sorry, only registered users may post in this forum.

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.