2013查询期间失去与MySQLserver的连接

时间:2018-12-17 03:09:40

标签: mysql

我使用此sql语句将报告错误:

SELECT case_option.plan_id AS plan_id,case_option.case_id AS case_id,options.option_name AS option_name,case_option.option_value as option_value,options.option_type AS option_type,options.option_or_env AS option_or_env  FROM case_option left join options on case_option.option_id = options.id where case_option.plan_id =90913 and case_option.case_id=30126

但是使用它不会报告错误:

SELECT case_option.plan_id AS plan_id,case_option.case_id AS case_id,options.option_name AS option_name,case_option.option_value as option_value,options.option_type AS option_type,options.option_or_env AS option_or_env  FROM case_option left join options on case_option.option_id = options.id where case_option.plan_id =90913 and case_option.case_id=30126

1 个答案:

答案 0 :(得分:0)

将net_read_timeout值检查到mysql中。您可以使用以下参数进行设置。

SET @@ local.net_read_timeout = 360;

还要将max_allowed_pa​​cket值检查到mysql配置文件中