Oracle 5.0 Reference Manual page 2070

Table of Contents

Advertisement

You can set the
user within their .profile,
/etc/profile
For example, add the Connector/J driver to your
depending on your command shell:
# Bourne-compatible shell (sh, ksh, bash, zsh):
shell> export CLASSPATH=/path/mysql-connector-java-ver-bin.jar:$CLASSPATH
# C shell (csh, tcsh):
shell> setenv CLASSPATH /path/mysql-connector-java-ver-bin.jar:$CLASSPATH
Within Windows 2000, Windows XP, Windows Server 2003 and Windows Vista, you set the
environment variable through the System Control Panel.
To use MySQL Connector/J with an application server such as GlassFish, Tomcat or JBoss, read your
vendor's documentation for more information on how to configure third-party class libraries, as most
application servers ignore the
J2EE application servers, see
"Load Balancing with
authoritative source for JDBC connection pool configuration information for your particular application
server is the documentation for that application server.
If you are developing servlets or JSPs, and your application server is J2EE-compliant, you can put the
driver's
.jar
third party class libraries in J2EE web applications.
You can also use the
com.mysql.jdbc.jdbc2.optional
them. Starting with Connector/J 5.0.0, the
using the
com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
distributed transactions when used in combination with MySQL server version 5.0.
The various
mutators):
user
password
serverName
databaseName
port
20.3.3.3. Upgrading from an Older Version
This section has information for users who are upgrading from one version of Connector/J to another,
or to a new version of the MySQL server that supports a more recent level of JDBC. A newer version of
Connector/J might include changes to support new features, improve existing functionality, or comply
with new standards.
20.3.3.3.1. Upgrading to MySQL Connector/J 5.1.x
• In Connector/J 5.0.x and earlier, the alias for a table in a
accessing the result set metadata using ResultSetMetaData.getColumnName(). This behavior
however is not JDBC compliant, and in Connector/J 5.1 this behavior was changed so that the
original table name, rather than the alias, is returned.
The JDBC-compliant behavior is designed to let API users reconstruct the DML statement based on
the metadata within
Connector/J Installation
environment variable under UNIX, Linux or Mac OS X either locally for a
CLASSPATH
.login
file.
CLASSPATH
Section 20.3.7, "Connection Pooling with Connector/J" Section 20.3.8,
Connector/J", and
file in the
WEB-INF/lib
MysqlDataSource
classes support the following parameters (through standard set
MysqlDataSource
(see the previous section about fail-over hosts)
ResultSet
or other login file. You can also set it globally by editing the global
CLASSPATH
environment variable. For configuration examples for some
Section 20.3.9, "Failover with
subdirectory of your webapp, as this is a standard location for
or
MysqlConnectionPoolDataSource
package, if your J2EE application server supports or requires
javax.sql.XADataSource
and ResultSetMetaData.
2050
using one of the following forms,
Connector/J". However, the
interface is implemented
class, which supports XA
statement is returned when
SELECT
classes in the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents