关于MySQL自动断开连接的问题

 在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

你可能感兴趣的:(mysql)