Table of Contents |
---|
Introduction
This
...
sample
...
simply
...
connect
...
to
...
a
...
mysql
...
server
...
and
...
execute
...
a
...
script
...
which
...
is
...
located
...
in
...
the
...
jar
...
package
...
and
...
insert
...
values
...
into
...
created
...
database
...
tables
...
and
...
retrieve
...
data
...
from
...
values
...
inserted
...
from
...
through
...
the
...
program.
Prerequisites
- Java Development Kit / JRE version 1.6.* or 1.7.*
- Apache Ant 1.7.0 or later
JDK and Ant setup instructions are given in section Installation Prerequisites.
Building the
...
sample
Code Block | ||
---|---|---|
| ||
mvn clean assembly:assembly -o |
...
Executing the
...
sample
Code Block | ||
---|---|---|
| ||
java -jar -Djdbcurl=jdbc:mysql://localhost:3306/rssdb -Ddriver=com.mysql.jdbc.Driver -Dusername=root -Dpassword=root target/rss-simple-sql-sample-1.0-jar-with-dependencies.jar |
...