日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網站首頁 編程語言 正文

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

欄目分類
最近更新