连接到我的SQL Server系统 [英] Connection to My SQL server System

查看:84
本文介绍了连接到我的SQL Server系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#Windows应用程序连接到mysql中的服务器系统
我有一个必须使用mysql数据库的应用程序.我使用本地系统和点网odbc连接成功连接了该数据库.但是,当我尝试连接到服务器数据库时,这对我来说是不可能的.如何配置mysql连接服务器数据库,以及如何配置Windows应用程序. (注意:我的应用程序应该从Internet上的任何计算机连接到服务器数据库)

How to connect to the server system in mysql using C# windows application
I have an application which have to use mysql database.I am successfully connect that database using local system and dot net odbc connection. But when I try to connect to the server database it is not possible for me. How configure mysql to connect server database and how to configure windows application to that. (Note: my application should connect to server database from any computer in the internet)

推荐答案

直接将数据库公开到Internet可能是一个坏主意. *通常*,您应该在面向外部的服务器(DMZ中的Web服务器)上创建Web服务,并允许IT人员访问网络内另一台计算机上的数据库服务器.即使将Web服务器和数据库服务器都放在同一台计算机上,将Web服务放在Internet和数据库之间也是一个更好的主意.
It''s probably a bad idea to directly expose a database to the internet. *Usually* you should create a web service on an outward-facing server (a web server in the DMZ), and allow IT to access a database server on another machine inside the network. Even if you put both the web server and the database server on the same machine, it''s still a better idea to put a web service in between the internet and the database.


这篇关于连接到我的SQL Server系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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