MySQL Connector/MXJ 5.0.9 is now Generally Available.
MySQL Connector/MXJ 5.0.9 is a Java utility package for deploying
and managing a MySQL RDBMS.
The 5.0.9 version includes MySQL 5.0.51a server community binaries and
related resources for the following platforms:
* Linux x86
* Mac OS X ppc, x86
* Windows XP/2K/NT/Vista/2008 x86
* SunOS sparc, x86
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 as part of a
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
* Connector/MXJ classes
* Connector/MXJ resources
* Aspect/J Runtime
2) create a JDBC connection string specifying where to deploy the
physical files "server.basedir", and whatever additional connection
parameters to pass to Connetor/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: ConnectorMXJUrlTestExample.java
and a POJO usage example: ConnectorMXJObjectTestExample.java
Each are located in the top level of mysql-connector-mxj-gpl-5-0-9.jar
and the source is in the src/ directory.
You can download sources and binaries from:
Remember, feedback is welcome and encouraged.
Please send questions/comments to java@stripped
Eric Herman, Software Developer
MySQL AB, www.mysql.com
VoIP Ext: 6594 US: +1 408 213 6540 Europe: +46 18 174 400
Mobile: +31 62 07 19 662 Netherlands: 062 07 19 662
Are you MySQL certified? www.mysql.com/certification
|• MySQL Connector/MXJ 5.0.9 released as GA||Eric Herman||26 Feb|