如何从同一局域网中的另一台机器连接mysql服务器
大家好 我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,假设你在 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!