Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



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

Posts: 3
Name: Alejandro Barrero
Trades: 0
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
 
 
Register now for full access!
Old 04-19-2008, 05:42 PM Re: How do I install a database with an application?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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 ?
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-20-2008, 08:51 AM Re: How do I install a database with an application?
Junior Talker

Posts: 3
Name: Alejandro Barrero
Trades: 0
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, 02:12 PM Re: How do I install a database with an application?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 04-21-2008, 10:42 AM Re: How do I install a database with an application?
Junior Talker

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

Posts: 310
Trades: 0
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).

Last edited by dman_2007; 04-23-2008 at 03:35 PM.. Reason: Sorry, didn't meant to say table name alongwith database name
dman_2007 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I install a database with an application?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.82601 seconds with 12 queries