wamp服务器中的默认服务器名称是什么?
我不知道默认服务器名称。你能帮助我吗,因为我需要处理我们的项目,将 vb.net 与 wamp 服务器连接起来,为此,我必须知道我将在代码中添加的服务器名称。拜托,先谢谢了。
I don't know of the default server name. Can you please help me because I need to work on our project to connect vb.net with wamp server, and for that to happen, I must know the server name that I will put on the codes. Please, thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
WAMP 服务器不维护名称。您通过 IP 地址连接到它...您不知道安装它的机器的 IP 吗?
如果它在您自己的计算机上,您可以通过连接到 127.0.0.1:3306(默认端口)从代码连接到 Sql 服务器。
如果您的计算机上没有该程序,请转到命令提示符并输入“ipconfig”,找到运行该程序的计算机的 IP 地址。
然后使用该 IP 地址和端口 3306(或您定义的任何端口,3306 只是默认端口)
The WAMP server doesn't maintain a name. You connect to it via an IP address... do you not know the IP of the machine it's installed on?
If it's on your own computer, you can connect to the Sql server from code by connecting to 127.0.0.1:3306 (default port).
If it's not on your machine, find the ip address of the machine it's running on by going to the command prompt and typing 'ipconfig'.
Then use that IP address and port 3306 (or whatever port you defined, 3306 is just default)
默认访问将通过
localhost
或127.0.0.1
进行。如果之前修改过,可能无法工作(很少)。以下应该可以工作(假设 mySQL 端口默认为 3306):
有关更多变化,查看此。
Default access will be via
localhost
or127.0.0.1
. Might not work (rarely) if it was modified before.The following should work provided (provided mySQL port is default at 3306) :
For more variations, check this out.
只需检查 connectionstrings.com,这是最好的资源之一。
Just check connectionstrings.com, one of the best resources out there.