tomcat和mysql连接问题

错误:
在用tomcat部署购物网站时出现500错误
查看tomcat的日志发现错误如下

08-Oct-2018 15:34:08.556 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 203499 ms
15:34:14.212 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - An attempt by a client to checkout a Connection has timed out.
15:36:13.853 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - An attempt by a client to checkout a Connection has timed out.
15:41:21.300 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - An attempt by a client to checkout a Connection has timed out.
15:46:35.155 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - An attempt by a client to checkout a Connection has timed out.
08-Oct-2018 15:50:40.655 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.

错误解释:与mysql连接失败
解决:重新检查网站代码,发现把需要连接的数据库的库名写错了。

猜你喜欢

转载自blog.csdn.net/weixin_42275939/article/details/82972111
今日推荐