Re: com.mysql.jdbc.exceptions.jdbc4.CommunicationsExce ption: Communications link failure
Date: June 16, 2010 08:24AM
I've just tried to use wireshark in order to catch tcp/ip communication between jdbc and mysql but...........unsuccessfully!! :(((
I've tried to filter network communications listed by wireshar by mean of my own static ip address or by mean of port number 3306 but when I run my java application and get that connection refused exception, no communication is catched up by wireshark...
I've made my tryings setting the bind-address parameter (into mysql/my.cnf file) either as my static ip addres or as localhost or as 127.0.0.1 but nothing get ever catched by wireshark...
(i've tried also setting jdbc to connect to 127.0.0.1:3306, localhost:3306, 127.0.0.1, localhost, staticIp:3306, staticIp)
so...there's no tcp/ip communication??? it's strange, isn't it? any suggestion?? :°(((