Opensource packaging software for Mysql Server wit

2019-08-28 22:17发布

问题:

I have a Java desktop application which uses mysql database . Is there any Open source software for packaging or executable wrapper of Mysql server and Java desktop application into one single Exe/Debian package where i need not separately install Mysql server separately . Its like one click installer which installs everything and the application is ready to use. Thanks

回答1:

The problem here is that MySQL is a standalone server, and cannot be easily embedded. You should use an embeddable or serverless database, such as :

  • SQLite (see the SQLite library for Java, containing all the server and the API in one jar)
  • Apache Derby (see the documentation for embedded use)
  • HyperSQL


回答2:

Just so it's said here, if you are not a Open Source project, what you are trying to do is not only a problem technically but also could be one legally. From the mySQL license agreement:

For OEMs, ISVs, VARs and Other Distributors of Commercial Applications:

OEMs, ISVs, VARs and other distributors that combine and distribute commercially licensed software with MySQL software and do not wish to distribute the source code for the commercially licensed software under version 2 of the GNU General Public License (the "GPL") must enter into a commercial license agreement with Sun.



回答3:

You'll probably have to script something together and use the NSIS installer builder (which is free) for Windows.

For Debian it'll be just some scripts which have to be packaged together in a .deb.

But I really don't think there is a out of the box, or off the shelf solution for this.

Good luck :)