开发者

Java + MySQL or LDAP Server Status

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜