0

I am developing a standalone application for a client using Java Swing and jdbc with MySQL. I am using MySQL as the database.I want to know that how the client can install MySQL, is there a way by which the client can install MySQL in his machine,or can i distribute the MySQL setup.The client just needs the software running and do not want to go to any installation process.

What is the way around with that??

Hovercraft Full Of Eels
286k25 gold badges268 silver badges391 bronze badges
asked May 22, 2011 at 4:21
1
  • I would say so, since many apps use MySQL (or SQLite). Commented May 22, 2011 at 4:23

4 Answers 4

3

Use Java Web Start to launch the app.

The MySQL installer can be invoked from an installer-desc element in the launch file. Here is my demo. of the JNLP API ExtensionInstallerService.

answered May 22, 2011 at 4:26
Sign up to request clarification or add additional context in comments.

Comments

2

You're likely to find H2, HSQLDB, Derby, or SQLite to be more suitable for your deployment. They're intended to be embedded in other applications.

answered May 22, 2011 at 4:52

Comments

2

This might not be the simplest solution, but it is a good idea to have an installer for your application, which would take care of MySQL installation. IzPack is a very reasonable installation tool, which can execute external applications (e.g. MySQL installer) as part of the installation process. This discussion might be of some interest.

However, as mentioned in other replies, the use of an embedded RDBMS such as H2, SQLite etc., is a better choice than MySQL for a standalone application.

answered May 23, 2011 at 5:57

Comments

1

Few portable database alternatives: Derby, SQLite.

answered May 22, 2011 at 4:30

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.