在Mac上做Web程序开发时,启动好的应用过一分钟后打开就抛错:
Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unex
这个问题困扰了我好久,interactive_timeout,validationQuery都设置过了,依然没用,附上最终的解决办法:
show variables like '%time%'; set net_write_timeout = 5000;
参考自:http://forums.pentaho.com/archive/index.php/t-140518.html
本文解决了一个在Mac上进行Web程序开发时遇到的问题:启动的应用在一分钟后打开会报错Cannotreadresponsefromserver.Expectedtoread4bytes,read0bytesbeforeconnectionwasunex。通过调整MySQL配置showvariableslike'%time%'及setnet_write_timeout=5000解决了该问题。
1470

被折叠的 条评论
为什么被折叠?



