Skip to content
Snippets Groups Projects
Commit 1b8ebe4b authored by Tanuj Mittal's avatar Tanuj Mittal Committed by Kevin Risden
Browse files

[jdbc] Update README and sample config file for jdbc binding (#872)

* Update Readme to match expected behavior for JdbcCreateTable
* Update sample properties file to use correct property key
parent 70f4362b
No related branches found
No related tags found
No related merge requests found
......@@ -54,10 +54,10 @@ Key take aways:
YCSB has a utility to help create your SQL table. NOTE: It does not support all databases flavors, if it does not work for you, you will have to create your table manually with the schema given above. An example usage of the utility:
```sh
java -cp YCSB_HOME/jdbc-binding/lib/jdbc-binding-0.4.0.jar:mysql-connector-java-5.1.37-bin.jar com.yahoo.ycsb.db.JdbcDBCreateTable -P testworkload -P db.properties -n usertable
java -cp YCSB_HOME/jdbc-binding/lib/jdbc-binding-0.4.0.jar:mysql-connector-java-5.1.37-bin.jar com.yahoo.ycsb.db.JdbcDBCreateTable -P db.properties -n usertable
```
Hint: you need to include your Driver jar in the classpath as well as specify your loading options via a workload file, JDBC connection information, and a table name with ```-n```.
Hint: you need to include your Driver jar in the classpath as well as specify JDBC connection information via a properties file, and a table name with ```-n```.
Simply executing the JdbcDBCreateTable class without any other parameters will print out usage information.
......
......@@ -15,7 +15,7 @@
# Properties file that contains database connection information.
jdbc.driver=org.h2.Driver
db.driver=org.h2.Driver
# jdbc.fetchsize=20
db.url=jdbc:h2:tcp://foo.com:9092/~/h2/ycsb
db.user=sa
......
......@@ -15,7 +15,7 @@
# Properties file that contains database connection information.
jdbc.driver=org.h2.Driver
db.driver=org.h2.Driver
db.url=jdbc:h2:tcp://foo.com:9092/~/h2/ycsb
db.user=sa
db.passwd=
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment