0

I have a a PC whose IP address is 192.168.0.101 and mysql port is 4000. When i try to connect to connect to it, it works fine but when i use another PC on the the same LAN whose IP address is 192.168.0.107, i keep on getting this exception:

Communication link failure due to underlying exception:
**BEGIN NESTED EXCEPTION**

java.net.ConnectionException
MESSAGE: connection timed out......

I have read so many posts like How to make mySQL database at my local accessible from different machines? but cant find my.cnf file. I also went through this Connecting to MySQL Database over server but still things are not working. All the computers on the lan are windows 7 x86. Please help me sort out this. Regards...

Community
  • 1
  • 1
Wafula Samuel
  • 530
  • 1
  • 8
  • 25

1 Answers1

0

Look this page for example java Connect

momomorez
  • 515
  • 5
  • 5