Windows应用程序 - 连接字符串(服务器) [英] Windows Application - Connection String (Server)

查看:66
本文介绍了Windows应用程序 - 连接字符串(服务器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我创建了Windows应用程序。它在局域网上运行良好。现在我希望通过网络连接服务器上的数据库。



数据库:Mysql



用于局域网我使用这样的连接字符串



windows应用程序。



公共db​​path as String

dbpath =Data Source = Client5_PC; Database = Proj_db_Nature; User ID = root; Password = nature;

conn = New MySqlConnection(dbpath)

conn。打开()



clinet5:系统名称

此系统使用(LAN)连接到所有其他系统。



现在我想通过互联网连接数据库。



是否可以将Windows应用程序连接到互联网服务器?



如果可能的话意味着请发送给我连接字符串..

[已删除] @ gmail.com





电子邮件已删除 - OriginalGriff [/ edit]

sir,
I have created windows application. It will work nice on Local Area Network. Now i Want connect database on server through net work.

database : Mysql

for local area network i use connection string like this

windows application.

Public dbpath as String
dbpath = "Data Source=Client5_PC;Database=Proj_db_Nature;User ID=root;Password=nature;"
conn = New MySqlConnection(dbpath)
conn.Open()

clinet5: system name
this system connected to all other system using(LAN).

now i want connect the database using through internet.

is it possible to connect windows application to internet server?

if possible means kindly sent me the connection string..
[DELETED]@gmail.com


[edit]Email removed - OriginalGriff[/edit]

推荐答案

我们不能通过互联网发送数据库连接的连接字符串我们熟悉的数据库和服务器你将会使用:要么查看您的数据库主机,要么与您的托管服务交谈 - 连接字符串将具有IP地址或连接机器的URL(并且希望密码保护比现有密码保护更好 - 我不会将我的数据库暴露给整个世界!)
We can''t send you the connection string for a database connection through the internet unles we are familiar with teh exact database and server you will be using: either look at your database host or talk to your hosting service - the connection string will either have an IP address or a URL to the connection machine (and hopefully will have better password protection than your existing one - I wouldn''t expose my DB''s to the entire world!)


这篇关于Windows应用程序 - 连接字符串(服务器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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