jdbc-start

Getting Started

Install the latest version of the Java SE SDK on your computer
java -version
Install your database management system (DBMS) if needed
  • MySQL
Install a JDBC driver from the vendor of your database
mysql-connector-java-8.0.21 is pure Java and implement the network protocol for a specific data source. The client connects directly to the data source. 
Install Apache Ant

ant download address

tar zxvf xxxx.tar.gz
export ANT_HOME=~/software/ant/apache-ant-1.9.15
export PATH=$ANT_HOME/bin:$PATH
Downlad the sample code
  • JDBCTutorial.zip
Modify the build.xml file
Modify the tutorial properties file
Compile and package the samples
ant jar
Create databases, tables, and populate tables
ant create-mysql-database
ant setup

mysql-connector-xx.jar path start with /

Run the samples
ant runct
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值