如何从同一局域网中的另一台机器连接mysql服务器

发布于 2024-10-10 04:35:09 字数 524 浏览 0 评论 0原文

大家好 我在 php/mysql 中创建了一个新的 Web 应用程序。我使用 windows7 和 xampp.. 现在我有另一个用 C# 编写的桌面应用程序,它安装在同一局域网中的另一台计算机上。 由于某种原因,应用程序需要与 Web 应用程序共享 mysql 数据库......我在 google 上搜索了解决方案......几乎没有建议更改

bind-address = 0.0.0.0

在 xampp/mysql/bin/my.ini 中,我这样做了,但它仍然不起作用,我评论

skip-networking

enable-named-pipe

也改变host = .< /strong> 到 主机 = % 但我无法连接....有什么解决方案吗....我花了8个小时到处搜索并尝试不同的东西,但没有运气....我的防火墙也被关闭了,

提前致谢 苏拉塞

Hi all
I have created a new web application in php/mysql. my using windows7 and xampp.. now i have another desktop application written in c# which is installed in another machine in same lan.
For some reason that application needs to share mysql database with web application..... i googled for the solution .... there were few suggestion to change

bind-address = 0.0.0.0

in xampp/mysql/bin/my.ini and i did that but it is not still working i comment

skip-networking

enable-named-pipe

also change host = . to host = %
but i could not connect.... is there any solution.... i have spend 8 hours searching here and there and trying different things but no luck.... also my firewalls are turned off

thanks in advance
Surace

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

留一抹残留的笑 2024-10-17 04:35:09

好吧,假设你在 192.168.0.x 的 LAN 上,那么我过去在进行 Web dev 和 mysql 时所做的就是连接到 192.168.0.2:3306,如果我在不同的 ip 上地址,希望这会有所帮助:) 我从未使用过 C#,所以如果这没用,我深表歉意!

OK, say if you're on a LAN of 192.168.0.x, then what i've done in the past when doing web dev and mysql is to connect to 192.168.0.2:3306, if i'm on a different ip address, hope this helps :) I've never used C# so apologies if this is useless!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文