Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL Communications Error between application server and MySQL server

 
Will Barbee
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application where the software runs on server 1 and the MySQL database is on server 2.
When I run the application directly on server 2, it runs properly.
When I run it from server 1 I get a database connection error:
"Failed to get database connection.
Communication exception - Communication link failure -
The last packet sent successfully to the server was 0 ms ago.
The driver has not received any packets from the server."

The Java code is:


We believe it is because the Windows Firewall is on. The client does not want to run without the firewall.

Does anyone know the name of the program doing the communicating so we can tell the Windows firewall that it is a trusted program?

I know the names and classes I put in the connection statements but I would not expect those to be the name
of the program which does the actual connecting.>
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried opening the port (3306 default/the port MySQL runs) on the firewall? That would be a security issue of course.
 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Googling "windows mysql process name" came up with some possiblities.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic