简体   繁体   中英

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. 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>".

Also any web-based php code with mysql query connection takes 20 sec to get the data page.

I also tried enabling skip_name_resolve / connect_timeout = 10 / wait_timeout = 50 but non of this did anything.

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而导致的这个问题,我使用了一个修复工具:“ Tweaking.com-Windows修复”,它解决了这个问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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