PDA

View Full Version : How to install database for my application in client machine?



rawfool
28th March 2012, 12:43
I'm required to develop a PC application using Qt/C++ for GUI & MySQL as database for my organization. Both the software are used without buying licences. This application will be sold to client and further the client will distribute the same application to other companies for some price. I want my application to be plug & play software, so that there is no hassle for client related to installation of other dependencies. In this case can I bundle MySQL setup file along with my application to create an installer? If not then how do I install MySQL database in client machine without any hiccups. This is the first time I'm developing an application with a database, so the confusion.

Please help me with this. Thank you.

Spitfire
28th March 2012, 13:30
Take a look at NSIS (http://nsis.sourceforge.net/Main_Page) and read license of MySQL you want to ship to see if you're allowed to bundle it with your app.

rawfool
28th March 2012, 14:11
I know how to bundle the software, but I'm looking for the legalities as I couldn't understand the whole text given in the license agreement. Also I want to know how I would configure the database in the client system after installation? I want it to be just plug & play app. Can you please direct me to a resource where all the activities(A to Z) of database handling & shipping is detailed.
Thank you.

ChrisW67
29th March 2012, 00:08
I am not sure why you are asking in a Qt forum about the configuration of a MySQL server and the legalities of bundling MySQL with your application.

See the MySQL docs (http://dev.mysql.com/doc/) on configuration (my.cnf) and creation of databases (SQL/DDL).

You should understand the GPL Version 2 (http://www.fsf.org/licenses/gpl-faq.html) for distribution of the community edition of MySQL. Given that MySQL is covered by the GPL you will be obliged to provide source code for MySQL if requested, as will your customer to their customer. Further, if you have used the embedded MySQL option your entire application may be exposed to the GPL conditions. This is not legal advice: talk to a legal professional in your part of the world.

rawfool
29th March 2012, 09:23
Thanks for your reply Chris. I asked here because as there might be a chance where someone in this forum has encountered the same problem. As the Qt/C++ GUI application uses MySQL in my case, I thought I can get some help here.