MySQLConnectorJ
5.1 Developer Guide
1. MysQL为由Java语⾔编程的客户端程序提供连接:MySQL Connector/J,这是⼀个实现Java Database Connectivity(JDBC) API的驱动.
2.MySQL Connector/J 是⼀个JDBC Type 4驱动.类型4表⽰该驱动是纯Java实现MySQL协议,并且不依赖MySQL客户端库.
jdbctemplate是什么3.对于⼤型程序that use common design patterns of data access,考虑使⽤流⾏的persistence框架,例如Hibernate,Spring's JDBC templates 或者MyBatis SQL Maps来减少debug,tune,secure和维护的JDBC代码的数量.
4.Connector/J
5.1 是Type 4 pure Java JDBC driver,符合JDBC 3.0,4.0,4.1和4.2规范.
5.Installation
distributed as a .zip or . archive.
The archive contains the sources and JAR archive named mysql-connector-java-version-bin.jar.
You can install the Connector/J package using either the binary or source distribution.
⼆进制的安装最简单.源distribution允许你深度定制你的安装.
两者都需要将Connector/J的位置添加到Java CLASSPATH中.
Connector/J也适⽤于Maven项⽬.
⼀. 解压下载的⽂件.
⼆. 解压后,可以通过将mysql-connector-java-version-bin.jar放⼊classpath中,或者添加全路径到CLASSPATH环境变量.
To use the driver with the JDBC DriverManager, sql.jdbc.Driver as the class that implements java.sql.Driver.
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论