homework-jianmu/examples/JDBC/JDBCDemo
Shuduo Sang 67bca400c4
fix: refine example (#22325)
* fix: use latest version of jdbc connector

* fix: remove locale and timezone to avoid confusing user

* fix: update readme.md
2023-08-04 13:57:34 +08:00
..
src/main/java/com/taosdata/example fix: refine example (#22325) 2023-08-04 13:57:34 +08:00
README-jdbc-windows.md docs: updagte taos shell as TDengine CLI for 3.0 version ,include in taos.cfg 2022-08-26 18:38:04 +08:00
pom.xml fix(driver): jdbc sample for 3.0 (#16235) 2022-08-22 13:26:59 +08:00
readme.md fix: refine example (#22325) 2023-08-04 13:57:34 +08:00

readme.md

How to Run the JDBC Demo Code On Linux OS

TDengine's JDBC demo project is organized in a Maven way so that users can easily compile, package and run the project. If you don't have Maven on your server, you may install it using

sudo apt-get install maven

Install TDengine Client

Make sure you have already installed a tdengine client on your current develop environment. Download the tdengine package on our website: https://www.taosdata.com/cn/all-downloads/ and install the client.

Run jdbcDemo using mvn plugin

run command:

mvn clean compile exec:java -Dexec.mainClass="com.taosdata.example.JdbcDemo"

and run with your customed args

mvn clean compile exec:java -Dexec.mainClass="com.taosdata.example.JdbcDemo" -Dexec.args="-host [HOSTNAME]"

Compile the Demo Code and Run It

mvn clean package -Dmaven.test.skip=true

To run JDBCDemo.jar, execute

java -jar target/JDBCDemo-SNAPSHOT-jar-with-dependencies.jar -host [HOSTNAME]