c#与Mysql部署 [英] c# with Mysql Deployment

查看:127
本文介绍了c#与Mysql部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


(1)我已经使用后端mysql创建了一个c#应用程序.但是我不知道如何部署或创建setup_file.如何在另一台计算机上使用该应用程序而不在该PC上安装mysql.

(2)Mysql数据库文件存储在哪里?
他们在

Hi
(1)I had created a c# application with backend mysql.But I dont know how to deploy or create setup_file.And how should i use this application on another computer without installing mysql on that pc.

(2)where is Mysql Database files are stored??
are they in

"C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 5.5\data\"


如果需要,那么如何在应用程序中部署它们.

我有c#和Mysql的基本知识..
请帮我,
谢谢和问候,
Swapnil


And if they r, then how to deploy them with your application.

I have basic knowledge of c# and Mysql..
Plssss Help Me,
Thanks and Regards,
Swapnil

推荐答案

如果您的应用程序使用MySql,则您部署到的PC必须有权访问MySQL服务器安装.这可以在自己的计算机上,也可以在现有的安装中.

但是,您不应在安装中包括MySQL.有两个原因:

1)他们可能已经在网络上安装了MySQL.如果是这样,那么他们大概会想使用该版本.
2)如果他们确实安装了MySQL,并且您开始激增服务器实例,那么您将使数据库管理员大为恼火...
3)与在用户控制下的多个分散版本相比,备份单个站点的MySQL的可能性要高得多.
4)对于普通"用户来说,MySql的安装和管理非常复杂-这不是一个好主意!
5)它将破坏使用MySql而不是SqlCE或SQLite的主要优势-多用户访问.如果每个人都安装了自己的MySQL副本,那么您将拥有数据库的多个副本,每个副本都由一个人使用.这将引起一些混乱,并且(取决于您编写原始数据库的方式)在实现问题时可能需要花费相当大的精力才能组合成一个实例.

而是给他们一个下载链接,并让他们在需要时进行计算.
If your application uses MySql, then the PC you deploy to must have access to a MySQL server installation. This could be on their own machine, or an existing installation.

However, you should not include MySQL in your installation. There are a couple of reasons:

1) They may already have MySQL installed on the network. If so, then they will presumably want to use that version.
2) If they do have MySQL installed and you start proliferating server instances, you are going to annoy the heck out of the database administrator...
3) A single site installation of MySQL is a lot more likely to be backed up than a number of scattered version under user control.
4) MySql is quite complex for a "normal" user to install and administer - it is not a good idea!
5) It will destroy the primary advantage of using MySql over SqlCE or SQLite - multiuser access. If everyone installs their own copy of MySQL, 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.

Instead, give them a link to the download, and let them work out if they need it.


这篇关于c#与Mysql部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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