diff --git a/jdbc/README.md b/jdbc/README.md index b6e10926fb555ff25103f2296e9b1292417b4f7c..aaedbbf19195a16dfe4c791b031f8cc2c6ffc4b9 100644 --- a/jdbc/README.md +++ b/jdbc/README.md @@ -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. diff --git a/jdbc/src/main/conf/db.properties b/jdbc/src/main/conf/db.properties index 81849a6320ec69ea0847c6100a8a3c3da702f587..e12cc1ef119bad9c52542629877941a45da699fe 100644 --- a/jdbc/src/main/conf/db.properties +++ b/jdbc/src/main/conf/db.properties @@ -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 diff --git a/jdbc/src/main/conf/h2.properties b/jdbc/src/main/conf/h2.properties index d698edec43f5d952b73086b62490f1991916a414..cfde14cb4cf53c1f3f8690d1927ae56f4a83f872 100644 --- a/jdbc/src/main/conf/h2.properties +++ b/jdbc/src/main/conf/h2.properties @@ -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=