The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.) ### The error may exist in file [D:\java\tomcat\apache-tomcat-9.0.62\webapps\ROOT\WEB-INF\classes\mapper\BookMapper.xml] ### The error may involve com.laver.bookstore.mapper.BookMapper.selectByExample ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure什么意思
时间: 2023-12-06 15:41:44 浏览: 643
![PDF](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
## @[Android studio通过jdbc连接mysql基本步骤 以及 遇到的坑“The last packet sent successfully to the server was 0 m
![star](https://csdnimg.cn/release/wenkucmsfe/public/img/star.98a08eaa.png)
这个错误提示表明应用程序无法获取数据库连接。"Communications link failure" 意味着数据库连接已经中断或无法建立连接,通常是由于以下原因之一导致的:
1. 数据库服务器宕机或未启动。
2. 数据库服务器上的网络连接中断。
3. 应用程序无法使用正确的用户名和密码进行身份验证。
4. 应用程序无法访问正确的数据库或数据源。
为了解决这个问题,你可以尝试以下步骤:
1. 确认数据库服务器已启动并可以正常运行。
2. 检查网络连接,确保应用程序可以连接到数据库服务器。
3. 确认应用程序使用了正确的用户名和密码进行身份验证。
4. 确认应用程序正在连接到正确的数据库或数据源。
阅读全文
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)