
在用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://www.uj5u.com/qita/53914.html
標籤:其他
