wamp服务器中的默认服务器名称是什么?

发布于 2024-08-14 06:20:02 字数 94 浏览 1 评论 0原文

我不知道默认服务器名称。你能帮助我吗,因为我需要处理我们的项目,将 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 技术交流群。

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

发布评论

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

评论(3

等数载,海棠开 2024-08-21 06:20:02

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)

如果没结果 2024-08-21 06:20:02

默认访问将通过 localhost127.0.0.1 进行。如果之前修改过,可能无法工作(很少)。

以下应该可以工作(假设 mySQL 端口默认为 3306):

Dim connectionString As String = "Driver={MySQL};SERVER=localhost;DATABASE=student;

有关更多变化,查看此。

Default access will be via localhost or 127.0.0.1. Might not work (rarely) if it was modified before.

The following should work provided (provided mySQL port is default at 3306) :

Dim connectionString As String = "Driver={MySQL};SERVER=localhost;DATABASE=student;

For more variations, check this out.

森罗 2024-08-21 06:20:02

只需检查 connectionstrings.com,这是最好的资源之一。

Just check connectionstrings.com, one of the best resources out there.

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