Re: JDBC always Connection Refused (but msqladmin can connect via TCP)
Posted by: Phil S
Date: December 28, 2009 04:47AM

OK, so digging a bit deeper I discovered it was an IPv6 problem - JDBC is attempting to open an IPv6 socket and MySQL is not having any of that, at least not on my setup.

For now I am working around it by disabling IPv6 support in Java, using a command-line option:

java -Djava.net.preferIPv4Stack=true

And that works fine. What a relief!

Cheers,
Phil S

Options: ReplyQuote


Subject
Written By
Posted
Re: JDBC always Connection Refused (but msqladmin can connect via TCP)
December 28, 2009 04:47AM


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.