This is an example of a bulk-batch using TiDB and plain Java and JDBC.
- Makefile(recommend)
- Run
make all
.
- Manual
- Run
tiup demo bookshop prepare --drop-tables
to create the data structure and data on TiDB. - Run
mysql --host 127.0.0.1 --port 4000 -u root<add_attr_ten_point.sql
to addten_point
field. - Run
mvn clean package
. - Run
java -jar target/plain-java-batch-batch-0.0.1-jar-with-dependencies.jar
.