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 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
        * Connector/MXJ classes
        * Connector/MXJ resources

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

          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

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


You can download Connector/MXJ
sources and binaries from:

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

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

Eric Herman, Software Developer
MySQL Connector/MXJ 5.0.11 releasedEric Herman24 Nov