我下载了这个jdbc,请问怎么使用
请问你是想通过什么方式连接数据库,如果是jdbc的话,你的连接脚本是怎么写的?
感谢您的回复,我是测试 在 OceanBase 数据库上进行 TPC-C 测试
https://www.oceanbase.com/docs/community-observer-cn-10000000000901541
连接脚本如下:
cat props.ob
db=oceanbase
driver=com.mysql.jdbc.Driver
conn=jdbc:oceanbase://192.168.3.98:2883/tpccdb?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&allowMultiQueries=true
user=root@test
password=’********’
warehouses=10
loadWorkers=2
//fileLocation=/data/temp/
terminals=10
//To run specified transactions per terminal- runMins must equal zero
runTxnsPerTerminal=0
//To run for specified minutes- runTxnsPerTerminal must equal zero
runMins=10
//Number of total transactions per minute
limitTxnsPerMin=0
//Set to true to run in 4.x compatible mode. Set to false to use the
//entire configured database evenly.
terminalWarehouseFixed=true
//The following five values must add up to 100
newOrderWeight=45
paymentWeight=43
orderStatusWeight=4
deliveryWeight=4
stockLevelWeight=4
// Directory name to create for collecting detailed result data.
// Comment this out to suppress.
resultDirectory=my_result_%tY-%tm-%td_%tH%tM%tS
osCollectorScript=./misc/os_collector_linux.py
osCollectorInterval=1
//osCollectorSSHAddr=user@dbhost
//osCollectorDevices=net_eth0 blk_sda
写法错误。
你用mysql驱动,配置的url写的jdbc:oceanbase://192.168.3.98:2883/tpccdb
你要用mysql驱动就写mysql的,jdbc:mysql
要用oceanbase驱动,那就把oceanbase驱动放进lib
感谢,果然是这个问题