windows上的mysql,远程访问

发布于 2025-01-08 05:25:10 字数 149 浏览 4 评论 0原文

我刚刚在 Windows 机器上下载并安装了 MySQL。我只会在同一台机器上使用它。我想确保无法与我的服务器建立远程连接。我应该用什么方法来做到这一点?我正在使用Windows。我完全禁用了 TCP/IP 访问,但似乎通过管道的连接不起作用(这是 Windows 的事情吗?)谢谢。

I just downloaded and installed MySQL on a windows machine. I will only be using it from the same machine. I would like to make sure that no remote connections can be made to my server. What is the way I should do this? I am using windows. I disabled TCP/IP access altogether but it seems connections through pipes don't work (is this a windows thing?) Thanks.

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

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

发布评论

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

评论(1

旧人 2025-01-15 05:25:10

确保您的服务器侦听 127.0.0.1 ip 而不是 0.0.0.0

这可以通过编辑 my.ini/来完成my.cnf 文件或者通过在windows中编辑mysql服务。

将以下行添加到 [mysqld] 部分的 my.ini 文件中

bind-address = 127.0.0.1

查看更多信息 手册

Make sure your server listens to 127.0.0.1 ip instead of 0.0.0.0

This can either be done by editing my.ini/my.cnf file or by editing the mysql service in windows.

Add following line to your my.ini file in [mysqld] section

bind-address = 127.0.0.1

See more on manual

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