将MySQL和DB包含在安装和部署中。 [英] Include MySQL and DB to Setup and Deployment.

查看:91
本文介绍了将MySQL和DB包含在安装和部署中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我解决这个问题...



我正在使用MySQL进行VC 2013。现在我正在尝试使用安装和部署向导创建安装程序。



每件事都运行正常,我的问题是包括MySQL和数据库来设置。用户安装我的程序一定不要担心MySQL安装及其配置。



我需要的是,当用户完成软件安装时,MySQL也应该安装使用完全配置并恢复我的数据库,应创建一个帐户,其中包含访问数据库的所有权限。



他们是否有任何客户端软件可以执行此操作,可以配置并包含到设置向导以及DB完成所有这些工作。

解决方案

我没看过,但我想你会有手动完成。



意思是,您的应用程序必须在用户第一次运行时检查是否存在MySql安装。如果它没有安装在系统上,则需要以静默方式安装它,同时向最终用户显示有关数据库安装和进度的信息。



这是一个解释如何静默安装MySql的链接。



安装MySql后,您需要创建数据库并以实用方式填充表格。



如果有更好的方法,我不知道。



- 皮特

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.

解决方案

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


这篇关于将MySQL和DB包含在安装和部署中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆