使用Jmeter对Mysql进行压力测试无法执行多条sql语句问题

执行一条语句可以,多条语句则出错,查询Jmter日志,告知sql语法错误。

后来发现需要allowMultiQueries参数置为true,而且,只有MySQL Connector/J 3.1.1以上版本才支持。

建立连接时设置一下就可以了,如:jdbc:mysql://192.168.3.180/sample?user=root&password=& allowMultiQueries=true

如图:
![](http://dev.csdn.net/article/41/C:/Documents and Settings\Administrator\桌面\Snap2.jpg)

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus