Embedding mysql in java desktop application

MySQL isn’t an embedded database – the only JAR related to it is the JDBC driver. It requires a installation process, which might be able to be scripted via Java, but the process will definitely function outside of the Java application you intend it to support. Meaning, you can turn off your Java application but the MySQL service/daemon will still be running.

Only the libmysqld is embeddable.

There are embedded databases – SQLite, Firebird – and embedded databases made in Java – HSQL, Derby/(can’t remember what it was called before). I believe SQL Server Compact Edition is embeddable, while SQL Server Express/MSDE is not. I don’t know if Oracle has an embeddable version….

Leave a Comment