当我运行一长段代码时,出现“ 2013丢失连接错误...”。尝试在mysql工作台中将“ DBMS连接读取超时”更改为60。海蒂也出现问题。
问题一旦出现,似乎只要我运行任何长查询都会发生。
有什么想法吗?
谢谢
安德鲁
下面是SHOW GLOBAL STATUS LIKE'%connect%'的输出,希望对您有所帮助。
"Variable_name" "Value"
"Aborted_connects" "5"
"Connection_errors_accept" "0"
"Connection_errors_internal" "0"
"Connection_errors_max_connections" "0"
"Connection_errors_peer_address" "0"
"Connection_errors_select" "0"
"Connection_errors_tcpwrap" "0"
"Connections" "8"
"Locked_connects" "0"
"Max_used_connections" "2"
"Max_used_connections_time" "2019-05-29 15:42:39"
"Performance_schema_session_connect_attrs_lost" "0"
"Ssl_client_connects" "0"
"Ssl_connect_renegotiates" "0"
"Ssl_finished_connects" "0"
"Threads_connected" "1"