Port
A much dreaded MySQL error message during queries is "MySQL server has gone away".
You can forcibly bind to the same address and port to which there is an open server socket by using SO_REUSEADDR option (ServerSocket.setReuseAddress(boolean on) in Java).