Click here to Skip to main content
15,898,374 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please help me to solve this problem...

I am working on VC 2013 with MySQL. Now I am trying to create setup using the Setup and Deployment Wizard.

Every thing works fine and my problem is to include the MySQL and database to setup. User installing my program must not be worried about the MySQL installation and its configuration.

What I need is, when the user finishes the software installation, MySQL also should be installed with with fully configured and my databases restored, an account should be created with all the rights to access database.

Is their is any client software available to do this, which can be configured and include to the setup wizard along with the DB does all this job.
Posted
Updated 7-May-14 9:02am
v2

1 solution

I haven't looked, but I think you're going to have to do that manually.

Meaning, your application will have to check for the existence of the MySql installation the first time the user runs it. If it's not installed on the system, you will need to install it silently while displaying information about the database installation and progress to the end user.

Here's a link explaining how to install MySql silently.

When MySql is installed, you will need to create the database and populate it's tables pragmatically.

If there's a better way to do this, I'm not aware of it.

-Pete
 
Share this answer
 
v5

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