连接mysql报错,每天晚上第二天就会断开

问:DEBUG ajp-bio-8285-exec-8 com.mingsoft.servlet.regex.ListView -/home/xmszm2xrmbsgz8m/www/DEBUG ajp-bio-8285-exec-1 com.mingsoft.servlet.regex.ListView -http://www.xmszm.com:80/DEBUG ajp-bio-8285-exec-1 com.mingsoft.servlet.regex.ListView -/home/xmszm2xrmbsgz8m/www/DEBUG ajp-bio-8285-exec-6 com.mingsoft.servlet.regex.ListView -http://www.xmszm.com:80/DEBUG ajp-bio-8285-exec-6 com.mingsoft.servlet.regex.ListView -/home/xmszm2xrmbsgz8m/www/WARN ajp-bio-8285-exec-6 com.mchange.v2.c3p0.impl.NewPooledConnection -[c3p0] A PooledConnection that has signalled a error is still in use!WARN ajp-bio-8285-exec-6 com.mchange.v2.c3p0.impl.NewPooledConnection -[c3p0] error has [ com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No allowed after closed. ] which will not be to listeners!com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No allowed after closed. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.Util.getInstance(Util.java:386) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920) at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1304) at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1296) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4511) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4476) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.in ajp-bio-8285-exec-4 com.mingsoft.servlet.regex.ListView -http://www.xmszm.com:80/DEBUG ajp-bio-8285-exec-4 com.mingsoft.servlet.regex.ListView -/home/xmszm2xrmbsgz8m/www/WARN ajp-bio-8285-exec-4 com.mchange.v2.c3p0.impl.NewPooledConnection -[c3p0] 
请问下应该如何解决?感觉是mysql断开连接了。用久了。代码未见任何异常。,连接mysql报错,每天晚上第二天就会断开

答:您好,

西部数码(west.cn)是经工信部、ICANN、CNNIC认证审批,持有ISP、云牌照、IDC、CDN、顶级域名注册商等全业务资质的正规老牌服务商,自成立至今20余年专注于域名注册、虚拟主机云服务器企业邮箱、企业建站等互联网基础服务!

截止目前,已经为超过2000万个域名提供了注册、解析等服务,是中国五星级域名注册注册商!已为超过50万个网站提供了高速稳定的云托管服务,获评中国最受用户喜欢云主机服务商。

西部数码提供全方位7X24H专业售后支撑,域名注册特价1元起,高速稳定云主机45元起,更多详情请浏览西部数码官网:https://www.west.cn/

赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » 连接mysql报错,每天晚上第二天就会断开

登录

找回密码

注册