The driver has not received any packets from the

  • 問題

 今天運行部署在linux服務器上的項目的時候,啓動tomcat報錯提示:mysql

...last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • 解決方法

網上查詢了一下,是服務器鏈接超時(這裏是mysql鏈接超時),通過詢問他人才知道服務的址改變了linux

db.url=jdbc:mysql://192.168.88.80:3306/test?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&useSSL=false

即在配置文件中,修改一下url地址便可sql

若是仍是不行,就從新build後,在啓動服務器tomcat

相關文章
相關標籤/搜索