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

SDY-小五 2015-05-07 02:39:16

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)
...全文
227 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
SDY-小五 2015-05-07
  • 打赏
  • 举报
回复
mysql jdbc.url jdbc.url=jdbc:mysql://**********/test?autoReconnect=true&useUnicode=true&characterEncoding=utf8

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧