小编Len*_*art的帖子

远程连接到 MySQL 服务器需要很长时间

我有一个 MySQL 5.0.75 服务器在我的 Linux 笔记本上运行,我想从本地网络中的另一台机器连接到它。

此连接需要 5-6 秒:

mysql -h 172.22.65.101 -u myuser -p123
Run Code Online (Sandbox Code Playgroud)

对 MySQL 主机的 ping:

PING 172.22.65.101 (172.22.65.101) 56(84) bytes of data.
64 bytes from 172.22.65.101: icmp_seq=1 ttl=64 time=0.799 ms
64 bytes from 172.22.65.101: icmp_seq=2 ttl=64 time=0.000 ms
64 bytes from 172.22.65.101: icmp_seq=3 ttl=64 time=6.43 ms
64 bytes from 172.22.65.101: icmp_seq=4 ttl=64 time=0.000 ms
64 bytes from 172.22.65.101: icmp_seq=5 ttl=64 time=3.81 ms
64 bytes from 172.22.65.101: icmp_seq=6 ttl=64 time=0.706 ms
^C
--- 172.22.65.101 ping statistics --- …
Run Code Online (Sandbox Code Playgroud)

mysql domain-name-system performance connection reverse-dns

10
推荐指数
1
解决办法
8931
查看次数