Connection string for IPv6 and IPv4
Posted by: George Giloan
Date: February 24, 2014 03:52AM

Hello,

Is it possible to use the same connection string like the one bellow to connect to both IPv6 and IPv4 hosts?

"jdbc:mysql://address=(protocol=tcp)(host=localhost)(port=3306)(user=test)/db"

In the documentation it says the above syntax should be used for IPv6 connections.
Does this mean it's only for IPv6? Do I have to use the default syntax(jdbc:mysql://localhost:3306/sakila?profileSQL=true) for IPv4?

Thank you!



Edited 1 time(s). Last edit at 02/24/2014 03:53AM by George Giloan.

Options: ReplyQuote


Subject
Written By
Posted
Connection string for IPv6 and IPv4
February 24, 2014 03:52AM


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.