Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Before i proceed with my question, lets give you the detail about the project:

Am developing on inventory + accounting software in VB.NET and using MYSQL as database! now my question as below:

1.How to make a single setup package which include MYSQL server installation setup within it

2.while user is running the setup, database table should be created automatically, how to make it possible!

Its really urgent as my project is in final phase and any help regarding this would be a big favor!

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 31-Aug-13 23:24pm
v2
Comments
OriginalGriff 1-Sep-13 5:24am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Member 10214612 1-Sep-13 5:28am    
noted! but there was no such intention, only the intention is to come in notice as i didn't find any solution yet of this question! shall take care next time

1 solution

1) Don't. That's the simple answer.
You should not include any database Server system in your installation. There are a couple of reasons:
1.1) They may already have a server installed on the network. If so, then they will presumably want to use that version.
1.2) If they do have a server installed and you start proliferating instances, you are going to annoy the heck out of the database administrator...
1.3) A single site installation of a database server is a lot more likely to be backed up than a number of scattered version under user control.
1.4) A server is quite complex for a "normal" user to install and administer - it is not a good idea!
1.5) It will destroy the primary advantage of using a SQL server over SqlCE or SQLite - multiuser access. If everyone installs their own copy of the server, then you will have multiple copies of your database, each used by a single person. This will cause some confusion, and (depending on how you wrote the original database) may take some considerable effort to combine into a single instance when the problem is realized.

2) Connect to the MySQL instance, and check if the table exists. If it does, nothing more to do. If it doesn't, issue a command that creates it - you can use one of the MySql management tools to create the script from your existing table and store in it a file which the setup then references.
 
Share this answer
 
Comments
Menon Santosh 1-Sep-13 13:46pm    
my +5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900