If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Distributing a MySQL database?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-03, 10:12
Baltor Baltor is offline
Registered User
 
Join Date: Aug 2003
Location: Austin, Texas
Posts: 6
Question Distributing a MySQL database?

I have a MySQL database that I want to distribute with a program. How do you do this without making the user install MySQL.
Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-28-03, 17:23
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Wink

In many situations, you can simply assume that MySQL is already installed, and concentrate on configuring the database and permissions as you require them.

MySQL is an extremely common database to be offered by an internet hosting company, for example. If someone's looking to adopt your software, they probably have the server or can easily get it separately.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #3 (permalink)  
Old 11-28-03, 18:07
Baltor Baltor is offline
Registered User
 
Join Date: Aug 2003
Location: Austin, Texas
Posts: 6
In this case, it is nessecary to be able to access a MySQL database without MySQL being installed. I was wondering if you could save the database as a .sql file or something?
Reply With Quote
  #4 (permalink)  
Old 11-28-03, 20:54
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
Quote:

In this case, it is nessecary to be able to access a MySQL database without MySQL being installed. I was wondering if you could save the database as a .sql file or something?
You definitely should design a "seed" database structure and then export it with 'mysqldump' such that the user can re-create the database simply by creating a DB and executing that file.

I think that you should simply require MySQL as being something which you must already have, and already have fully installed, before your product can be expected to run. Then provide instructions that lead the user, absolutely step by every step, through the successful installation of your empty database.

One more thing: if MySQL is not installed, or the password is wrong or what-have-you, then your product must respond intelligently, intelliglbly, and gracefully to the condition! Which means that you have actually created and thoroughly tested that situation before product release.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #5 (permalink)  
Old 11-28-03, 22:23
Baltor Baltor is offline
Registered User
 
Join Date: Aug 2003
Location: Austin, Texas
Posts: 6
Allright, I'll try that.
Thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On