Hi everybody,
I'm developping a Java application which uses data stored in a MySQL Community Server running on my computer.
Now I want to use the Connector/MXJ to have an embedded database in my application. To do this I follow this procedure http://dev.mysql.com/doc/refman/5.0/en/connector-mxj-usagenotes-customdb.html.
The following Jar files are in the classpath
- mysql-connector-java-5.1.13-bin.jar
- mysql-connector-mxj-db-gpl-5.0.11.jar
- mycustom-mysql-connector-mxj-db-gpl-5.0.11-files.jar
- aspectjrt.jar
The problem is when I when I run my Java application I'have got the following error messages :
[C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\bin\mysqld.exe][--no-defaults][--console][--port=3336][--socket=mysql.sock][--basedir=C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj][--datadir=C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\data][--pid-file=C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\data\MysqldResource.pid]
[MysqldResource] launching mysqld (driver_launched_mysqld_1)
[MysqldResource] mysqld running as process: 3404
101208 11:14:12 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file .\ib_logfile0 is of different size 0 25165824 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
101208 11:14:12 [ERROR] Plugin 'InnoDB' init function returned error.
101208 11:14:12 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
101208 11:14:13 [Note] Event Scheduler: Loaded 0 events
101208 11:14:13 [Note] C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\bin\mysqld.exe: ready for connections.
Version: '5.1.40-community' socket: '' port: 3336 MySQL Community Server (GPL)
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown table engine 'InnoDB'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
at com.mysql.jdbc.Util.getInstance(Util.java:384)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2409)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2327)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2312)
at worker.WorkerDb.clean(WorkerDb.java:774)
at controller.Controller.clean(Controller.java:64)
at controller.Controller.updateAll(Controller.java:52)
at controller.Controller.<init>(Controller.java:45)
at main.Main.main(Main.java:24)
Thanks for your advices!
sébastien
I'm developping a Java application which uses data stored in a MySQL Community Server running on my computer.
Now I want to use the Connector/MXJ to have an embedded database in my application. To do this I follow this procedure http://dev.mysql.com/doc/refman/5.0/en/connector-mxj-usagenotes-customdb.html.
The following Jar files are in the classpath
- mysql-connector-java-5.1.13-bin.jar
- mysql-connector-mxj-db-gpl-5.0.11.jar
- mycustom-mysql-connector-mxj-db-gpl-5.0.11-files.jar
- aspectjrt.jar
The problem is when I when I run my Java application I'have got the following error messages :
[C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\bin\mysqld.exe][--no-defaults][--console][--port=3336][--socket=mysql.sock][--basedir=C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj][--datadir=C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\data][--pid-file=C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\data\MysqldResource.pid]
[MysqldResource] launching mysqld (driver_launched_mysqld_1)
[MysqldResource] mysqld running as process: 3404
101208 11:14:12 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: Error: log file .\ib_logfile0 is of different size 0 25165824 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
101208 11:14:12 [ERROR] Plugin 'InnoDB' init function returned error.
101208 11:14:12 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
101208 11:14:13 [Note] Event Scheduler: Loaded 0 events
101208 11:14:13 [Note] C:\Users\sebastien\AppData\Local\Temp\mysql-c.mxj\bin\mysqld.exe: ready for connections.
Version: '5.1.40-community' socket: '' port: 3336 MySQL Community Server (GPL)
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown table engine 'InnoDB'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
at com.mysql.jdbc.Util.getInstance(Util.java:384)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2568)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2113)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2409)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2327)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2312)
at worker.WorkerDb.clean(WorkerDb.java:774)
at controller.Controller.clean(Controller.java:64)
at controller.Controller.updateAll(Controller.java:52)
at controller.Controller.<init>(Controller.java:45)
at main.Main.main(Main.java:24)
Thanks for your advices!
sébastien