C3P0没配好 总是报错 求解

红番茄 发布于 2014/08/01 09:44
阅读 173
收藏 0

我的配置

<jdbc-maxpoolsize>50</jdbc-maxpoolsize>
<jdbc-minpoolsize>1</jdbc-minpoolsize>
<jdbc-initialpoolsize>2</jdbc-initialpoolsize>
<jdbc-acquireincrement>2</jdbc-acquireincrement>
<jdbc-maxstatements>0</jdbc-maxstatements>
<jdbc-maxidletime>10</jdbc-maxidletime>
<jdbc-checkouttimeout>20000</jdbc-checkouttimeout>
<jdbc-idleConnectionTestPeriod>1800</jdbc-idleConnectionTestPeriod>
<jdbc-acquireRetryAttempts>10</jdbc-acquireRetryAttempts>
<jdbc-acquireRetryDelay>1000</jdbc-acquireRetryDelay>

加载中
0
江南-浪子
江南-浪子

关键部位没有代码,

还有<jdbc-maxstatements>0</jdbc-maxstatements> 这个地方可以设置为0?

红番茄
红番茄
MESSAGE: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Broken pipe STACKTRACE: java.net.SocketException: Broken pipe ...
红番茄
红番茄
求1个正确配置
0
FoxHu
FoxHu

1.检查mysql服务是否启动
2.netstat -ano检查3306端口是否被占用

红番茄
红番茄
MESSAGE: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Broken pipe STACKTRACE: java.net.SocketException: Broken pipe ...
返回顶部
顶部