Re: Communications link failure
Posted by: Todd Farmer
Date: August 15, 2012 07:44PM

Glad to hear it! There are a couple of other options that I'll suggest here just for completeness, now that I've thought about it a little longer.

You're using 5.5, which by default does not bind to IPv6 interfaces. You can change that behavior so that 5.5 *does* bind to IPv6 interfaces by including --bind-address=* as a startup option to MySQL Server. I actually just blogged about the change in behavior introduced in 5.6.6 (just released as pre-GA) the other day:

http://mysqlblog.fivefarmers.com/2012/08/13/how-will-ipv6-changes-in-5-6-6-affect-you/

It's entirely possible also that changing "localhost" to "127.0.0.1" (the IPv4 loopback) in your JDBC connection string will also solve the issue without requiring the workaround. I haven't explicitly tested this yet myself (so I could be wrong), as my ancient XP box doesn't have IPv6 enabled right now (and enabling requires a painful reboot).

It's also possible that an entry in the hosts file that links "localhost" with the IPv4 loopback would also work (again, not tested).

Anyhow, glad to hear the problem is solved for you.

Best regards,

--
Todd Farmer
MySQL @ Oracle
http://www.oracle.com/mysql/

Options: ReplyQuote


Subject
Written By
Posted
Re: Communications link failure
August 15, 2012 07:44PM
November 27, 2012 08:23AM
November 27, 2012 11:18AM
January 06, 2013 01:46PM
January 08, 2013 04:25PM
January 08, 2013 11:11PM
January 09, 2013 10:36AM
January 10, 2013 08:23AM
January 18, 2013 02:02PM
September 23, 2012 02:03PM


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.