To include a pre-configured/populated database within your
        Connector/MXJ JAR file you must create a custom
        data_dir.jar file, as included within the
        main connector-mxj.jar (Connector/MXJ 5.0.3
        or earlier) or connector-mxj-db-files.jar
        (Connector/MXJ 5.0.4 or later) file:
      
            First extract the connector-mxj.jar
            file, as outlined in the previous section (see
            Sección 25.5.5.1, “Creating your own Connector/MXJ Package”).
          
First, create your database and populate the database with the information you require in an existing instance of MySQL - including Connector/MXJ instances. Data file formats are compatible across platforms.
Shutdown the instance of MySQL.
            Create a JAR file of the data directory and databases that
            you want to include your Connector/MXJ package. You should
            include the mysql database, which
            includes user authentication information, in addition to the
            specific databases you want to include. For example, to
            create a JAR of the mysql and
            mxjtest databases:
          
shell> jar -cf ../data_dir.jar mysql mxjtest
            For Connector/MXJ 5.0.3 or earlier, copy the
            data_dir.jar file into the extracted
            connector-mxj.jar directory, and then
            create an archive for connector-mxj.jar.
          
            For Connector/MXJ 5.0.4 or later, copy the
            data_dir.jar file into the extracted
            connector-mxj-db-files.jar directory, and
            then create an archive for
            connector-mxj-db-files.jar.
          
        Note that if you are create databases using the InnoDB engine,
        you must include the ibdata.* and
        ib_logfile* files within the
        data_dir.jar archive.
      
Ésta es una traducción del manual de referencia de MySQL, que puede encontrarse en dev.mysql.com. El manual de referencia original de MySQL está escrito en inglés, y esta traducción no necesariamente está tan actualizada como la versión original. Para cualquier sugerencia sobre la traducción y para señalar errores de cualquier tipo, no dude en dirigirse a mysql-es@vespito.com.

