Skip to content

Commit 1a2da05

Browse files
committed
Signed-off-by: chenhaoxiang <[email protected]>
1 parent 78e4ccb commit 1a2da05

12 files changed

+35
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

Database-support-package/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
���ݿ�֧�ְ�
603 KB
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<c3p0-config>
2+
<!-- 默认配置,如果没有指定则使用这个配置 -->
3+
<default-config>
4+
<property name="driverClass">com.mysql.jdbc.Driver</property>
5+
<property name="jdbcUrl">
6+
<![CDATA[jdbc:mysql://127.0.0.1:3306/mydb?useUnicode=true&characterEncoding=UTF-8]]>
7+
</property>
8+
<property name="user">root</property>
9+
<property name="password">1234</property>
10+
<!-- 初始化池大小 -->
11+
<property name="initialPoolSize">2</property>
12+
<!-- 最大空闲时间 -->
13+
<property name="maxIdleTime">30</property>
14+
<!-- 最多有多少个连接 -->
15+
<property name="maxPoolSize">10</property>
16+
<!-- 最少几个连接 -->
17+
<property name="minPoolSize">2</property>
18+
<!-- 每次最多可以执行多少个批处理语句 -->
19+
<property name="maxStatements">50</property>
20+
</default-config>
21+
<!-- 命名的配置 -->
22+
<named-config name="hncu">
23+
<property name="driverClass">com.mysql.jdbc.Driver</property>
24+
<property name="jdbcUrl">jdbc:mysql://127.0.0.1:3306/mydb</property>
25+
<property name="user">root</property>
26+
<property name="password">1234</property>
27+
<property name="acquireIncrement">5</property><!-- 如果池中数据连接不够时一次增长多少个 -->
28+
<property name="initialPoolSize">100</property>
29+
<property name="minPoolSize">50</property>
30+
<property name="maxPoolSize">1000</property>
31+
<property name="maxStatements">0</property>
32+
<property name="maxStatementsPerConnection">5</property> <!-- he's important, but there's only one of him -->
33+
</named-config>
34+
</c3p0-config>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)