S
spacerook
Has anyone ever made a JDBC connection using an IPv6 URL? I am
setting my URL like so (the address here is fake):
jdbc:mysql://[1111:2222:3333:4444:5555:6666:7777:8888]/mysql
This results in the following error:
Cannot get connection for URL jdbc:mysql://
[1111:2222:3333:4444:5555:6666:7777:8888]/mysql : Illegal connection
port value ':5555:6666:7777:8888]'
I am trying to connect to a MySQL database and am using the MySQL
drivers. The Java program is on a Windows machine, which has IPv6
enabled and can successfully make a IPv6 ping (using ping6) to the
MySQL server. I'm starting Java with -
Djava.net.preferIPv6Addresses=true, which seems to have had no effect.
setting my URL like so (the address here is fake):
jdbc:mysql://[1111:2222:3333:4444:5555:6666:7777:8888]/mysql
This results in the following error:
Cannot get connection for URL jdbc:mysql://
[1111:2222:3333:4444:5555:6666:7777:8888]/mysql : Illegal connection
port value ':5555:6666:7777:8888]'
I am trying to connect to a MySQL database and am using the MySQL
drivers. The Java program is on a Windows machine, which has IPv6
enabled and can successfully make a IPv6 ping (using ping6) to the
MySQL server. I'm starting Java with -
Djava.net.preferIPv6Addresses=true, which seems to have had no effect.