docker Mysql连接慢问题--DNS的锅
现象描述:本机连接mysql速度很快 远程连接mysql速度需要等待30秒左右 远程连接后访问mysql中的表正常问题原因是由于mysql对连接的客户端进行DNS反向解析。官方文档关于DNS的说明:How MySQL uses DNSWhen a new thread connects to mysqld, mysqld will spawn a new thread to handle the request. This thread will first check if the h
原创
2020-06-01 15:10:44 ·
1131 阅读 ·
0 评论