Deploying Connector/MXJ using Driver Launch
Connector/MXJ and Connector/J work together to enable you to launch an instance of the mysqld
server through the use of a keyword in the JDBC connection string. Deploying Connector/MXJ within a Java application can be automated through this method, making the deployment of Connector/MXJ a simple process:
- Download and unzip Connector/MXJ. Add
mysql-connector-mxj-gpl-[ver].jar
to theCLASSPATH
.If you are using Connector/MXJ v5.0.4 or later, also add the
mysql-connector-mxj-gpl-[ver]-db-files.jar
file to yourCLASSPATH
. - To the JDBC connection string, embed the
mxj
keyword, for example:jdbc:mysql:mxj://localhost:
.PORT
/DBNAME
For more details, see , "Connector/MXJ Configuration".