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

主宰稳场 提交于 2019-12-11 03:22:45

问题


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


回答1:


Thanks anyway, I have figured out that this issue because of the windows, I have used a repair tool: "Tweaking.com - Windows Repair" and it fixed this issue...



来源:https://stackoverflow.com/questions/25223266/mysql-5-6-takes-long-time-to-connect-even-with-the-mysql-5-6-command-line-clie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!