網站首頁 編程語言 正文
jmeter連接數據庫The driver has not received any packets from the server
作者:拉格朗日愛上了泰勒丶 更新時間: 2022-05-20 編程語言
在用jemter連接數據庫時報Cannot create PoolableConnectionFactory (Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)。翻閱各種資料,終于解決了。
解決辦法:將圖中數據庫URL改為jdbc:mysql://127.0.0.1(或者localhost):3306/test即可
因為root權限的數據庫只能通過localhost訪問,當然你也可以在虛擬機中用docker啟動mysql,這樣就可以用ip地址去訪問啦,注意要把JDBC的jar包放到jmeter目錄下的lib/ext里面。
這樣就完美解決啦
萌新第一次發博客,希望能幫助到大家,一起學習成長!!!
原文鏈接:https://blog.csdn.net/hyk1499449886/article/details/108588635
相關推薦
- 2022-02-11 ES6的Promise用法詳解_基礎知識
- 2022-12-09 使用adb命令從電腦傳文件到手機(傳文件)_Android
- 2022-12-22 數據清洗之如何用一行Python代碼去掉文本中的各種符號_python
- 2022-06-17 C#使用讀寫鎖解決多線程并發問題_C#教程
- 2022-09-05 淺談異常分類及異常處理機制
- 2022-10-26 Android?audio音頻流數據異常問題解決分析_Android
- 2022-12-07 C語言內存分布與heap空間分別詳細講解_C 語言
- 2023-07-18 A component required a bean of type ‘xxx‘ that cou
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支