1492fc3483a4f0c7c3a018598121c146a02cf1d2
\347\224\250DBeaver\345\256\242\346\210\267\347\253\257\350\277\236\346\216\245\351\253\230\346\226\257\346\225\260\346\215\256\345\272\223.md
... | ... | @@ -60,3 +60,59 @@ |
60 | 60 | <version>5.0.0</version> |
61 | 61 | </dependency> |
62 | 62 | ``` |
63 | + |
|
64 | +jdbc 示例: |
|
65 | +```yaml |
|
66 | +########DBCP########## |
|
67 | + |
|
68 | +########gaussdb iiot######## |
|
69 | +driverClassName=com.huawei.gaussdb.jdbc.Driver |
|
70 | +url=jdbc:gaussdb://ip:8000,ip:8000,ip:8000/tpcc?currentSchema=snest_changwen&autoBalance=true&refreshCNIpListTime=3&prepareThreshold=1&batchMode=on&fetchsize=10&loggerLevel=OFF |
|
71 | +username=*** |
|
72 | +password=*** |
|
73 | +validationQuery=SELECT 1 |
|
74 | +gaussdbDeployment=Distributed |
|
75 | + |
|
76 | + |
|
77 | +initialSize=5 |
|
78 | +maxActive=30 |
|
79 | +minIdle=5 |
|
80 | +maxWait=6000 |
|
81 | +filters=stat |
|
82 | +timeBetweenEvictionRunsMillis=60000 |
|
83 | +minEvictableIdleTimeMillis=300000 |
|
84 | +testOnBorrow=false |
|
85 | +testOnReturn=false |
|
86 | +testWhileIdle=true |
|
87 | +poolPreparedStatements: true |
|
88 | +maxOpenPreparedStatements: 20 |
|
89 | +connectionProperties:druid.stat.sql.MaxSize=100; |
|
90 | + |
|
91 | + |
|
92 | + |
|
93 | +########oceanbase######## |
|
94 | +#driverClassName=com.mysql.cj.jdbc.Driver |
|
95 | +#url=jdbc:mysql://ip:2881/snest_changwen?rewriteBatchedStatements=TRUE&allowMultiQueries=TRUE&useLocalSessionState=TRUE&useUnicode=TRUE&characterEncoding=utf-8&socketTimeout=10000&connectTimeout=30000&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true |
|
96 | +#username=*** |
|
97 | +#password=*** |
|
98 | + |
|
99 | + |
|
100 | + |
|
101 | +########Oracle######## |
|
102 | +#driverClassName=oracle.jdbc.OracleDriver |
|
103 | +#url=jdbc:oracle:thin:@ip:1521:ORCLCDB |
|
104 | +#username=C##*** |
|
105 | +#password=*** |
|
106 | +#validationQuery=SELECT 'x' FROM DUAL |
|
107 | + |
|
108 | + |
|
109 | +########postgresql######## |
|
110 | +#driverClassName=org.postgresql.Driver |
|
111 | +#url=jdbc:postgresql://ip:5432/postgres?currentSchema=snest_changwen&encoding=UTF-8&timezone=UTC |
|
112 | +#username=*** |
|
113 | +#password=*** |
|
114 | +#validationQuery=SELECT 1 |
|
115 | + |
|
116 | + |
|
117 | +``` |
|
118 | + |