List:Announcements« Previous MessageNext Message »
From:Eric Herman Date:November 24 2009 10:15am
Subject:MySQL Connector/MXJ 5.0.11 released
View as plain text  
MySQL Connector/MXJ 5.0.11 is now available for download.

MySQL Connector/MXJ 5.0.11 is a Java utility package for deploying
and managing a MySQL RDBMS.

The 5.0.11 version includes MySQL 5.1.40 server community binaries and
related resources for the following platforms:
        * Linux x86, x86_64
        * Mac OS X ppc, x86, x86_64
        * Windows XP/2K/NT/Vista/2008/7 x86, x86_64
        * SunOS sparc, x86, x86_64

Platforms can easily be added or removed from:
mysql-connector-mxj-gpl-5-0-11-db-files.jar


MySQL Connector/MXJ may be bundled into an existing Java application
and managed as a POJO (Plain Old Java Object) or launched by creating a
Connector/J connection.

This makes it easy for Java developers creating an application that uses
JDBC through MySQL Connector/J to deploy applications which require a
database by reducing installation barriers for their end-users.

Adding a MySQL database to a Java application can be as easy as:
1) configuring the CLASSPATH to include:
        * Connector/J 5.x JDBC driver
          (mysql-connector-java-5.1.10-bin.jar)
        * Connector/MXJ classes
          (mysql-connector-mxj-gpl-5-0-11.jar)
        * Connector/MXJ resources
          (mysql-connector-mxj-gpl-5-0-11-db-files.jar)

2) create a JDBC connection string specifying where to deploy the
physical files "server.basedir", and whatever additional connection
parameters to pass to Connector/J or Connector/MXJ to refine the
behavior:

          String url = "jdbc:mysql:mxj://localhost:3306/" + dbName //
                  + "?" + "server.basedir=" + databaseDir //
                  + "&" + "createDatabaseIfNotExist=true"//
                  + "&" + "server.initialize-user=true" //
          ;

With Connector/J 5.x, simply adding "mxj:" will signal the Connector/J
JDBC driver to automatically deploy and launch the MySQL database with
the first connection.

In order for MySQL Connector/MXJ to make the MySQL database appear to be
a java-based component, it determines what platform the system is
running on, selects the appropriate binary, and launches the executable.
It will also optionally deploy an initial database, with any specified
parameters.

Included is a Connector/J URL example: ConnectorMXJUrlTestExample.java
and a POJO usage example: ConnectorMXJObjectTestExample.java
Each are located in the top level of mysql-connector-mxj-gpl-5-0-11.jar
and the source is in the src/ directory.

Documentation:

http://dev.mysql.com/doc/refman/5.0/en/connector-mxj.html


You can download Connector/MXJ
sources and binaries from:

http://dev.mysql.com/downloads/connector/mxj/5.0.html

You can download the latest Connector/J JDBC driver from:

http://dev.mysql.com/downloads/connector/j/5.1.html



Remember, feedback is welcome and encouraged.
Please send questions/comments to java@stripped


-- 
Eric Herman, Software Developer
Sun MySQL www.mysql.com
Thread
MySQL Connector/MXJ 5.0.11 releasedEric Herman24 Nov