Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Can you create a MySQL JDBC connection string that has different hosts but the same port? (no replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>