如何在另一台计算机上部署我的C#mysql应用程序 [英] How to deploy my C# mysql application on another computer

查看:250
本文介绍了如何在另一台计算机上部署我的C#mysql应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,如果有人可以帮我解决我的问题,我真的很感激。



我用Mysql做了一个C#windows应用程序作为数据库。我已经完成了我的应用程序并进行了一个安装项目。

问题是,我不知道如何在其他计算机上提供我的数据库?我应该在电脑上安装Mysql服务器吗?



我已将我的应用程序安装在另一台计算机上,但它显示未知数据库。



感谢您的支持,

Hello everyone, If anyone can help me in my problem I would really appreciate that.

I have done a C# windows application with Mysql as a database. I have finished my application and made a setup project.
The problem is, I don''t know how will I have my database available on the other computers? Should I install Mysql server on the computers?

I have installed my application on another computer, but it is showing "unknown database".

Thanks for your Support,

推荐答案

有什么问题?数据库或RDBMS?



如果需要,数据库通常包含在安装中(您可以包含任何文件,如您所知)。 RDBMS通常被认为是您产品的先决条件。如果您需要将其与您的应用程序一起部署,请参阅MySql文档。



另外,在这里看到它会很有用:http://bit.ly/Vo5KyZ [ ^ ]。



-SA
What''s the problem? Database or RDBMS?

Database, if you need, is usually included in installation (you can include any file, as you know). RDBMS is more usually claimed as a prerequisite for your product. If you need to deploy it with your application, refer to MySql documentation.

Also, it would be useful to see here: http://bit.ly/Vo5KyZ[^].

—SA


这就是我通常做的事情。部署涉及应用程序的数据库。



1.进行设置,包括我的所有应用程序,MySQL设置,创建数据库的MySQL脚本

2.当有人运行安装程序时首先安装MySQL安装程序并在MySQL-UI中配置用户Id和pwd以及其他设置

3.运行我开发的接受数据库服务器的实用程序应用程序Uid和密码

4.使用MySQL.Cmd执行创建数据库,表,存储过程等的脚本

5.将所有其他exes和配置文件复制到本地驱动器



就是你所有人完成!!
This is what I normally do when I want to deploy a database involved application.

1. Make a setup that includes all my application, MySQL setup, MySQL script to create database
2. when someone run the setup install the MySQL setup first and configure the user Id and pwd and other setting in MySQL-UI
3. Run the Utility Application that I developed which accepts the database server, Uid and password
4. using MySQL.Cmd execute the script which creates the database,table, stored procedure etc
5. Copy all other exes and configuration files to the local drive

thats all your done!!


谢谢大家,



Jibesh,我实际上从你的解决方案中理解了这个概念。我使用了Mysql Workbench,通过它我导出了我的数据库。我在另一台计算机上安装了Mysql并导入了数据库,它运行了!



再次感谢...!
Thanks Guys,

Jibesh, I actually understood the concept from your solution. I have used Mysql Workbench through which I exported my Database. I installed Mysql on the other computer and imported the Database, and it worked!

Thanks again...!


这篇关于如何在另一台计算机上部署我的C#mysql应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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