MySQL Connector/J
Copyright (c) 1997-2008 MySQL AB, 2009 Sun Microsystems, Inc. All
rights reserved. U.S. Government Rights - Commercial software.
Government users are subject to the Sun Microsystems, Inc.
standard license agreement and applicable provisions of the FAR
and its supplements. Use is subject to license terms. Sun, Sun
Microsystems, the Sun logo, Java, Solaris, StarOffice, MySQL
Enterprise Monitor 2.0, MySQL logo(tm) and MySQL(tm) are
trademarks or registered trademarks of Sun Microsystems, Inc. in
the U.S. and other countries. UNIX is a registered trademark in
the U.S. and other countries, exclusively licensed through X/Open
Company, Ltd.
Copyright (c) 1997-2008 MySQL AB, 2009 Sun Microsystems, Inc. Tous
droits r??serv??s. L'utilisation est soumise aux termes du contrat
de licence.Sun, Sun Microsystems, le logo Sun, Java, Solaris,
StarOffice, MySQL Enterprise Monitor 2.0, MySQL logo(tm) et
MySQL(tm) sont des marques de fabrique ou des marques d??pos??es de
Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays. UNIX
est une marque d??pos??e aux Etats-Unis et dans d'autres pays et
licenci??e exlusivement par X/Open Company, Ltd.
This documentation is NOT distributed under a GPL license. Use of
this documentation is subject to the following terms: You may
create a printed copy of this documentation solely for your own
personal use. Conversion to other formats is allowed as long as
the actual content is not altered or edited in any way. You shall
not publish or distribute this documentation in any form or on any
media, except if you distribute the documentation in a manner
similar to how Sun disseminates it (that is, electronically for
download on a Web site with the software) or on a CD-ROM or
similar medium, provided however that the documentation is
disseminated together with the software on the same medium. Any
other use, such as any dissemination of printed copies or use of
this documentation, in whole or in part, in another publication,
requires the prior written consent from an authorized
representative of Sun Microsystems, Inc. Sun Microsystems, Inc.
and MySQL AB reserve any and all rights to this documentation not
expressly granted above.
For more information on the terms of this license, for details on
how the MySQL documentation is built and produced, or if you are
interested in doing a translation, please contact the
Documentation Team (http://www.mysql.com/company/contact/).
For additional licensing information, including licenses for
libraries used by MySQL, see Preface, Notes, Licenses
(http://dev.mysql.com/doc/refman/5.0/en/preface.html).
If you want help with using MySQL, please visit either the MySQL
Forums (http://forums.mysql.com) or MySQL Mailing Lists
(http://lists.mysql.com) where you can discuss your issues with
other MySQL users.
For additional documentation on MySQL products, including
translations of the documentation into other languages, and
downloadable versions in variety of formats, including HTML, CHM,
and PDF formats, see MySQL Documentation Library
(http://dev.mysql.com/doc).
Abstract
This manual describes MySQL Connector/J, the JDBC implementation
for communicating with MySQL servers.
Document generated on: 2009-09-11 (revision: 16574)
_______________________________________________________
MySQL Connector/J
MySQL provides connectivity for client applications developed in
the Java programming language via a JDBC driver, which is called
MySQL Connector/J.
MySQL Connector/J is a JDBC Type 4 driver. Different versions are
available that are compatible with the JDBC 3.0 and JDBC 4.0
specifications. The Type 4 designation means that the driver is
pure-Java implementation of the MySQL protocol and does not rely
on the MySQL client libraries.
Although JDBC is useful by itself, we would hope that if you are
not familiar with JDBC that after reading the first few sections
of this manual, that you would avoid using naked JDBC for all but
the most trivial problems and consider using one of the popular
persistence frameworks such as Hibernate
(http://www.hibernate.org/), Spring's JDBC templates
(http://www.springframework.org/) or Ibatis SQL Maps
(http://ibatis.apache.org/) to do the majority of repetitive work
and heavier lifting that is sometimes required with JDBC.
This section is not designed to be a complete JDBC tutorial. If
you need more information about using JDBC you might be interested
in the following online tutorials that are more in-depth than the
information presented here:
* JDBC Basics
(http://java.sun.com/docs/books/tutorial/jdbc/basics/index.htm
l) --- A tutorial from Sun covering beginner topics in JDBC
* JDBC Short Course
(http://java.sun.com/developer/onlineTraining/Database/JDBCSho
rtCourse/index.html) --- A more in-depth tutorial from Sun and
JGuru
Key topics:
* For help with connection strings, connection options setting
up your connection through JDBC, see Section 4.1,
"Driver/Datasource Class Names, URL Syntax and Configuration
Properties for Connector/J."
* For tips on using Connector/J and JDBC with generic J2EE
toolkits, see Section 5.2, "Using Connector/J with J2EE and
Other Java Frameworks."
* Developers using the Tomcat server platform, see Section
5.2.2, "Using Connector/J with Tomcat."
* Developers using JBoss, see Section 5.2.3, "Using Connector/J
with JBoss."
* Developers using Spring, see Section 5.2.4, "Using Connector/J
with Spring."
MySQL Enterprise MySQL Enterprise subscribers will find more
information about using JDBC with MySQL in the Knowledge Base
articles about JDBC
(https://kb.mysql.com/search.php?cat=search&category=10). Access
to the MySQL Knowledge Base collection of articles is one of the
advantages of subscribing to MySQL Enterprise. For more
information, see
http://www.mysql.com/products/enterprise/advisors.html.
Chapter 1. Connector/J Versions
There are currently four versions of MySQL Connector/J available:
* Connector/J 5.1 is the Type 4 pure Java JDBC driver, which
conforms to the JDBC 3.0 and JDBC 4.0 specifications. It
provides compatibility with all the functionality of MySQL,
including 4.1, 5.0, 5.1, and 5.4. Connector/J 5.1 provides
ease of development features, including auto-registration with
the Driver Manager, standardized validity checks, categorized
SQLExceptions, support for the JDBC-4.0 XML processing, per
connection client information, NCHAR
(http://dev.mysql.com/doc/refman/5.0/en/char.html), NVARCHAR
(http://dev.mysql.com/doc/refman/5.0/en/char.html) and NCLOB
types. This release also includes all bug fixes up to and
including Connector/J 5.0.6.
* Connector/J 5.0 provides support for all the functionality
offered by Connector/J 3.1 and includes distributed
transaction (XA) support.
* Connector/J 3.1 was designed for connectivity to MySQL 4.1 and
MySQL 5.0 servers and provides support for all the
functionality in MySQL 5.0 except distributed transaction (XA)
support.
* Connector/J 3.0 provides core functionality and was designed
with connectivity to MySQL 3.x or MySQL 4.1 servers, although
it will provide basic compatibility with later versions of
MySQL. Connector/J 3.0 does not support server-side prepared
statements, and does not support any of the features in
versions of MySQL later than 4.1.
没有合适的资源?快使用搜索试试~ 我知道了~
java程序的mysql数据库驱动
共258个文件
java:216个
properties:9个
jar:7个
5星 · 超过95%的资源 需积分: 35 7 下载量 28 浏览量
2010-05-22
10:19:35
上传
评论 1
收藏 3.77MB ZIP 举报
温馨提示
java程序的mysql数据库驱动java程序的mysql数据库驱动java程序的mysql数据库驱动java程序的mysql数据库驱动java程序的mysql数据库驱动
资源推荐
资源详情
资源评论
收起资源包目录
java程序的mysql数据库驱动 (258个子文件)
c3p0-LICENSE 26KB
CHANGES 180KB
COPYING 19KB
EXCEPTIONS-CONNECTOR-J 5KB
tb2-data.txt.gz 232KB
connector-j.html 665KB
LICENSE-AspectJ.html 16KB
junit-3.8.2-LICENSE.html 15KB
mysql-connector-java-5.1.12-bin.jar 716KB
c3p0-0.9.1-pre6.jar 519KB
log4j-1.2.9.jar 344KB
ant-contrib.jar 190KB
junit-3.8.2.jar 118KB
jboss-common-jdbc-wrapper.jar 49KB
commons-logging.jar 37KB
DatabaseMetaData.java 250KB
ResultSetImpl.java 242KB
StatementRegressionTest.java 176KB
ConnectionImpl.java 162KB
PreparedStatement.java 159KB
MysqlIO.java 156KB
ResultSetRegressionTest.java 150KB
ConnectionPropertiesImpl.java 149KB
MetaDataRegressionTest.java 82KB
ServerPreparedStatement.java 82KB
UpdatableResultSet.java 79KB
StatementImpl.java 77KB
ConnectionRegressionTest.java 77KB
CallableStatementWrapper.java 73KB
CallableStatement.java 69KB
ConnectionWrapper.java 66KB
ReplicationConnection.java 63KB
DatabaseMetaDataUsingInfoSchema.java 58KB
StatementsTest.java 56KB
ConnectionTest.java 56KB
TimeUtil.java 55KB
CallableStatementRegressionTest.java 51KB
SQLError.java 50KB
StringUtils.java 44KB
ResultSetRow.java 42KB
CharsetMapping.java 40KB
ConnectionProperties.java 35KB
PreparedStatementWrapper.java 34KB
JDBC4CallableStatementWrapper.java 32KB
MetadataTest.java 29KB
StringRegressionTest.java 28KB
JDBC4MysqlSQLXML.java 27KB
Field.java 27KB
BaseTestCase.java 26KB
StatementsTest.java 26KB
NonRegisteringDriver.java 24KB
ResultSetMetaData.java 22KB
EscapeProcessor.java 21KB
MysqlXAConnection.java 21KB
StatementWrapper.java 21KB
BufferRow.java 20KB
JDBC4UpdatableResultSet.java 20KB
BlobFromLocator.java 18KB
LoadBalancingConnectionProxy.java 18KB
MysqlErrorNumbers.java 18KB
JDBC4PreparedStatementWrapper.java 17KB
JDBC4ResultSet.java 17KB
CharsetTests.java 16KB
MysqlDefs.java 16KB
Buffer.java 16KB
DataSourceRegressionTest.java 16KB
Util.java 16KB
CallableStatementTest.java 15KB
MicroPerformanceRegressionTest.java 15KB
DateTest.java 14KB
PooledConnectionRegressionTest.java 13KB
XATest.java 13KB
Connection.java 13KB
Blob.java 13KB
ProfilerEvent.java 13KB
RowDataDynamic.java 12KB
UnreliableSocketFactory.java 12KB
RowDataCursor.java 12KB
StandardSocketFactory.java 12KB
LoadStorePerfTest.java 11KB
BlobRegressionTest.java 11KB
JDBC4ConnectionWrapper.java 11KB
ExportControlled.java 10KB
MysqlDataSource.java 10KB
UpdatabilityTest.java 9KB
Security.java 9KB
JDBC4DatabaseMetaData.java 9KB
NumbersRegressionTest.java 9KB
JDBC4Connection.java 9KB
ServerController.java 9KB
SingleByteCharsetConverter.java 8KB
JDBC4CallableStatement.java 8KB
Clob.java 8KB
ByteArrayRow.java 8KB
CompressedInputStream.java 8KB
ResultSetTest.java 8KB
BaseBugReport.java 8KB
MysqlPooledConnection.java 8KB
SubqueriesRegressionTest.java 7KB
RetrievalPerfTest.java 7KB
共 258 条
- 1
- 2
- 3
资源评论
- i2hotel2012-12-29使用了几个用相当的不错 继续完善中
风默涵
- 粉丝: 2
- 资源: 46
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功