Lost connection to mysql during query, mysql workbench

谁说我不能喝 提交于 2020-01-17 04:23:02

问题


I have the same problem as this when I want to index a very large table on one of its non-unique columns which is an integer, and I tried all the solutions that are proposed in that post that has at least one vote up. I still couldn't fix it. Any other ideas?

I have enough memory:

max_allowed_packet: 2G, innodb_buffer_pool_size: 9G

All the time out settings mentioned in this post and here are set to much higher numbers than the default.


回答1:


While this is not necessary an answer for loosing connection in mysql workbench it is a workaround. When it comes to long running queries in mysql workbench, even if one changes the mysql workbench parameters, there seems to be a connection time_out issue still occuring. So, run the query from mysql command line and see if it works. If it works when you run from the mysql command line and not from workbench, you know its just a mysql workbench issue and not some other issue.



来源:https://stackoverflow.com/questions/29086366/lost-connection-to-mysql-during-query-mysql-workbench

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