jmeter jdbc mysql,MYSQL的JDBC连接配置在Jmeter中不起作用

As per the instructions given in link:

I downloaded the JAR for MySQL and placed it in the lib directory of JMeter Home folder. I also added the jar to the classpath in the JMeter GUI as well. However, I dont get the 'JDBC Connection Configuration' option under Add->Config Element sub menu. Should I do something else to get it?

Edit: I have attached the screenshot for the same below:

6f33286c27049b8fe165fcfb9e6e3169.png

解决方案

What OS you're running and how did you install JMeter?

Sometimes packaging sucks, for instance crazy Ubuntu maintainers think that default JMeter should be shipped only with HTTP protocol support and if you need Mail, LDAP, etc. you need to install the relevant packages separately.

I would recommend the following:

Download and install latest version of Oracle JRE (or even better JDK) and modify your JAVA_HOME and PATH variables to include /bin folder of the JRE/JDK

Download JDBC MySQL driver, unpack it and drop mysql-connector-java-x.x.xx-bin.jar to /lib folder of your JMeter installation.

Don't install any plugins or any other stuff unless you really need it. JMeter plugins maintainers have alternative vision of packaging as well (for instance Selenium libraries clash with JMeter ones and who knows what else)

Follow steps from The Real Secret to Building a Database Test Plan With JMeter guide to set up database URL, JDBC driver class, credentials, etc.

If anything goes wrong update your question with at least jmeter.log file and leave a corresponding comment so we could take a look.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值