Main |
Usage example jdbc2xml mysql:
java -cp target/classes:/usr/share/java/mysql.jar org.clazzes.jdbc2xml.tools.ConnectionMain --jdbc2xml \
--url jdbc:mysql://localhost:3306/foodb --user root --password secret --to-file foodb.xml
Usage example jdbcping mysql:
java -cp target/classes:/usr/share/java/mysql.jar org.clazzes.jdbc2xml.tools.ConnectionMain --jdbcping \
--url jdbc:mysql://localhost:3306/foodb --user root --password secret
Usage example jdbcping ms sql server (note the " to protect the ; in the URL!):
java -cp target/classes:/opt/java/lib/sqljdbc.jar org.clazzes.jdbc2xml.tools.Main --jdbcping \
--url "jdbc:sqlserver://localhost:1433;databaseName=foodb;user=Administrator;password=secret;"
As we have not written a wrapper script yet, let's suggest a valid full classpath:
target/classes:/opt/java/lib/sqljdbc.jar:/usr/share/java/mysql.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-logging-api.jar:~/.m2/repository/org/clazzes/util/0.3.4/util-0.3.4.jar |