zoukankan      html  css  js  c++  java
  • 【异常】ser class threw exception: java.sql.SQLException: The last packet successfully received from the server was 39,444 milliseconds ago. The last

    1 详细异常

    ser class threw exception: java.sql.SQLException: The last packet successfully received from the server was 39,444 milliseconds ago. The last packet sent successfully to the server was 39,444 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to a
    

      

    2 解决方案

    mysql 链接失效时间设置过短,导致(改到一个合适的时间,根据自己的应用程序)
     
    SHOW GLOBAL VARIABLES LIKE '%timeout%'
    SET GLOBAL wait_timeout=10000
  • 相关阅读:
    P3224 [HNOI2012]永无乡(平衡树合并)
    jquery的队列问题
    值得以后看的东西
    js的>>>
    js的set和get
    js数组的操作方法
    中文冒号检查了两个小时
    setintervalue传参数的三种方法
    js轮训
    npm全局安装
  • 原文地址:https://www.cnblogs.com/QuestionsZhang/p/11893122.html
Copyright © 2011-2022 走看看