• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL Error: Communications link failure

 
Arturo Menendez
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, im developing an app for my school. The idea is to register the people and some reservations. We have one guard so he go with people, open the room and release the reservation.
The web registration is Ok it is with php. _
Now we have to finish the app side where we release the reservation.
I have this JDBC:
mysql-connector-java-5.1.26-bin.jar
My server is a windows server 08 rt with xampp 1.7.4
I have no firewall (For now)

and the error is the next:

Communications Link failure.
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.


My connection code is this:


And this is my.cnf
(Without comments)

And where I call the query (I have some layouts that i wont post)

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the DB host -whatever IP it may have- reachable from whatever network the mobile device is on?

Using JDBC to a host that's reachable over the public internet -if that's what you're doing- is generally frowned upon for security reasons.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic