The driver has not received any packets from the server

解决方法:

     jdbc的url添加参数:

jdbc.url=jdbc:mysql: //localhost:3306/totosea?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false

  在mysql的安装目录下找到my.ini中添加:将mysql回收空闲连接的时间变长,mysql默认回收时间是8小时

wait_timeout= 31536000
interactive_timeout= 31536000

转载于:https://www.cnblogs.com/zhaojinxin/p/7550398.html

你可能感兴趣的:(The driver has not received any packets from the server)