连接数据库异常,本地正常,服务器错误

SDY-小五 SDY-小五 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Spring MVC + mybatis + mysql (C3P0) 本地运行正常,上传到云服务器(linux)后,访问出现此错误:

请问哪些大侠了解类似错误,求解


POST http://www.xxxxxx.com/query.do 500

(### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:

Communications link failure The last packet successfully received from the server was 145,986 milliseconds ago.

The last packet sent successfully to the server was 13 milliseconds ago.

### The error may exist in file [/data1/jetty_work/237/fastsearch/jetty-0.0.0.0-12149-fastsearch.war-_1_fastsearch-any-/webapp/WEB-INF/classes/com/mapper/ProHisInfo_mapper.xml]

### The error may involve defaultParameterMap
### The error occurred while setting parameters

### SQL: SELECT * FROM auction_his_info
WHERE state = 1
AND proname LIKE CONCAT('%',?,'%')
AND start_time >= ?
AND end_time <= ?

ORDER BY end_time ASC)
...全文
评论 1
收藏 已收藏
分享
返回顶部
SDY-小五
Web 开发 81,107 成员 341,720 内容