Re: com.mysql.jdbc.exceptions.jdbc4.CommunicationsExceptio n: Communications link failure
Posted by: James Peters
Date: May 22, 2010 09:12PM

I was getting this same error message.

My bind-address was set to my nic so that my other PCs could use the database. It seems that because jdbc connects over TCP/IP, using 127.0.0.1 and localhost in the URL won't work.
I also had to change the host in the user privileges to the bind-ip rather than localhost.

Hope this is helpful to anyone who's made it this far down the list without success.

Options: ReplyQuote


Subject
Written By
Posted
Re: com.mysql.jdbc.exceptions.jdbc4.CommunicationsExceptio n: Communications link failure
May 22, 2010 09:12PM


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.