Home >Database >Mysql Tutorial >Linux 环境下,jdbc连接mysql问题

Linux 环境下,jdbc连接mysql问题

WBOY
WBOYOriginal
2016-06-06 09:41:24976browse

mysqljdbceclipselinuxconnection

技术小白,写了一个Damon程序,需要按时启动访问数据库,在Windows环境中,使用eclipse启动没有问题,程序可以访问结束后释放连接,但是,打包成runnable jar后,放在Linux服务器上运行,就会随着时间,connection逐渐增加,直到因为”too many“被mysql拒绝,导致程序崩溃,请问这是为什么呢。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn