简体   繁体   English

即使使用“ MySQL 5.6 Command Line Client”,MySQL 5.6仍需要花费很长时间进行连接

[英]MySQL 5.6 takes long time to connect, even with the “MySQL 5.6 Command Line Client”

I have had MySQL 5.6.16 and was working perfect suddenly the MySQL connection become so slow to connect (20 - 21 seconds) I have removed it completely even with the data tables and downloaded and installed ver. 我安装了MySQL 5.6.16,并且工作正常,突然之间,MySQL连接变得如此缓慢(20-21秒),我什至完全删除了它,甚至没有安装数据表并下载并安装了ver。 5.6.19 with a fresh and new installation, but this didn't fix the long time connection EVEN with the MySQL Command Line Client it takes 20 seconds to return the "mysql>". 5.6.19使用全新的安装,但这并不能解决长时间的连接,即使与MySQL Command Line Client保持长时间连接也需要20秒才能返回“ mysql>”。

Also any web-based php code with mysql query connection takes 20 sec to get the data page. 同样,任何基于mysql查询连接的基于Web的php代码都需要20秒才能获取数据页面。

I also tried enabling skip_name_resolve / connect_timeout = 10 / wait_timeout = 50 but non of this did anything. 我也尝试过启用skip_name_resolve / connect_timeout = 10 / wait_timeout = 50,但是没有这样做。

I have: Windows 7 Home Premium SP1 x64 MySQL 5.6.19-enterprise-commercial-advanced Apache 2.4.9 (Win64) OpenSSL 1.0.1f PHP 5.5.10 MySQL Global Status: https://www.dropbox.com/s/gz44pvtomwbncog/MYSQL_GLOBAL_STATUS.txt 我有:Windows 7 Home Premium SP1 x64 MySQL 5.6.19-enterprise-commercial-advanced Apache 2.4.9(Win64)OpenSSL 1.0.1f PHP 5.5.10 MySQL全局状态: https ://www.dropbox.com/s/ gz44pvtomwbncog / MYSQL_GLOBAL_STATUS.txt

无论如何,谢谢,我已经发现由于Windows而导致的这个问题,我使用了一个修复工具:“ Tweaking.com-Windows修复”,它解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM