MYSQL异常处理数据库已断开连接 [英] MYSQL Exception handled database disconnected

查看:379
本文介绍了MYSQL异常处理数据库已断开连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据库服务器,我远程连接到它。有些时候net down然后异常引发了MySQL异常没有处理数据库找不到。

我在MYSQLException的try catch中处理它我希望当数据库断开它找到连接时直到它连接就像在Skype中尝试一样或尝试

有什么想法吗?

I have a database server and i remotely connected to it. Some times net down then exception raised MySQL exception not handle database couldnot be found.
I handled it in try catch of MYSQLException i want when database disconnected it locate for connection until it connect as like in skype it tries or tries
Any idea?

推荐答案

这篇关于MYSQL异常处理数据库已断开连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆