How can I check from Java is MySQL / LDA开发者_如何学编程P is running or not?
Simply attempt a connection. In case the target servers aren't running, you will get, and catch an exception indicating this.
If you then don't want to use the connection, if successful, close() it.
加载中,请稍侯......
精彩评论