Reply
How do I install a database with an application?
Old 04-19-2008, 04:27 PM How do I install a database with an application?
Junior Talker

Posts: 3
Name: Alejandro Barrero
I have programmed with databases for many years, but for the first time I am developing my own program that uses a database. In my laptop I just access the database in Java with the database URL. I understand that if I am going to install the program in another computer, I will have to install the database in some directory. I know how to install the database by hand, but how do I do it with a self installing zip file?

Your help will be greatly appreciated,

Alejandro Barrero
handro1104 is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 04-19-2008, 04:42 PM Re: How do I install a database with an application?
tripy's Avatar
Fetchez la vache!

Latest Blog Post:
Pretty pretty please….
Posts: 1,720
Name: Thierry
Location: In the void
At first, welcome on this forum Alejandro.

Second: what database are you talking about, and on which system ?
Installing from a zip file don't means much, and can be almost anything (except Oracle or ms sql server, as I'm pretty sure those are not distributed in zip files).

So, which database are you trying to install, on which kind of server ?
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 04-20-2008, 07:51 AM Re: How do I install a database with an application?
Junior Talker

Posts: 3
Name: Alejandro Barrero
Thanks for your answer Thierry. I am not trying to install the database from a zip file. I want to create a self extracting zip file that will install my application and will also install the database. I would like to know the answer for all databases if there is one, but in particular, I am interested in MySQL.
handro1104 is offline
Reply With Quote
View Public Profile
 
Old 04-20-2008, 01:12 PM Re: How do I install a database with an application?
ForrestCroce's Avatar
Half Man, Half Amazing

Latest Blog Post:
North Lake Union
Posts: 2,928
Name: Forrest Croce
Location: Seattle, WA
Quote:
Originally Posted by tripy View Post
(except Oracle or ms sql server, as I'm pretty sure those are not distributed in zip files).
I can't speak to Oracle, since I haven't used it at this level ... but a zip file could be part of how a SQL Server database is deployed, at least in theory. The database server would have to already be installed, and up and running on the target server. You'd have to decompress the mdf/ldf files into the place you want them, and then attach the database using sql. There's a bit of complexity, mainly because one way the storage engine reduces I/O is to hold the files open [locked] the entire time it's running. And since it runs as a service, that's whenever the host machine is running.

I think MySql tends to be distributed through zip files more often, though?
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 04-21-2008, 09:42 AM Re: How do I install a database with an application?
Junior Talker

Posts: 3
Name: Alejandro Barrero
Thank you very much.
handro1104 is offline
Reply With Quote
View Public Profile
 
Old 04-23-2008, 09:45 AM Re: How do I install a database with an application?
Ultra Talker

Posts: 308
Instead of distributing entire database as zip file, it would be far more better in my opinion if you just included database schema and required database data as csv files and reconstructed the database the first time user ran the program. Also, instead of hardcoding database name in the program, make it so that the user can specify the database name to be used by your application (prefereably a table name prefix as well, so that multiple instances of your application can be run by using single database).
__________________
tiny url

Last edited by dman_2007 : 04-23-2008 at 02:35 PM. Reason: Sorry, didn't meant to say table name alongwith database name
dman_2007 is offline
Reply With Quote
View Public Profile Visit dman_2007's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to How do I install a database with an application?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.13379 seconds with 15 queries