从实时IP访问数据库 [英] Access database from live IP

查看:79
本文介绍了从实时IP访问数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有asp.net网站.我要付款的地方.付款后,我将IPN数据插入数据库.当我从本地PC或网络中访问数据库时,我的代码工作正常.我已经从PC中的实时IP在IIS中配置了我的应用程序.我可以访问我的所有页面.但是,当我从实时URL访问时,无法访问数据库.

我有 mysql 数据库
我的本地服务器中有一个数据库.
我想从实时访问数据库.
我如何才能实时获得连接字符串.

请任何人帮助我....

Hi,
I have asp.net website. Where I am making a payment. After payment I am inserting IPN data into database. My code is working fine when I am accessing my database from local pc or in network. I have configured my application in IIS from my pc which is live IP. I can access my all pages. But when I am accessing from live url, I can not access my database.

I have mysql database
I have a database in my local server.
I want to access database from live.
How can i get connectionstring for live.

Please anyone help me....

推荐答案

可能是您的MySQL服务器不允许远程连接.我不确定那是哪个设置,但是在SQL Server配置中,您只需要选中允许远程TCP/IP连接"或类似的操作即可.查看MySQL是否具有类似的设置.
may be your MySQL server is not allowing remote connections. I m not sure which setting thats under but in SQL Server Configuration you just have to check "Allow remote TCP/IP connections" or something like that and you are done. See if MySQL has similar settings.


这篇关于从实时IP访问数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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