[Tutor] Distributing MySQL with my application

Alan Gauld alan.gauld at btinternet.com
Sun Mar 22 00:54:57 CET 2009


"Lauren Snyder" <lauren at protopc.com> wrote

> I have written an application in python that uses a MySQL database. 
> I want
> to distribute this application to many users so I created an 
> executable
>
> 1. Is it possible to bundle the database into my application?

It may be possible but it is unusual.
Normally the database woyuld come as a sseparate installer so that
those who already have MySql can simply create a new database
on their existing server. It is much easier to administer multiple 
databases
on a single server than to have multiple servers ruinning!

> 2. Do I have to write a script that installs the database server
> locally?

If it needs to be local. Do you not use an environment variable or 
config
file to allow the user to select where the database server runs?

> 3. Do I have to make "Users must have MySQL server running" as a
> pre-requisite for using my software?

Usually yes, then provide a loader for MySql for those who need it.

HTH,


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/ 




More information about the Tutor mailing list