Home  >  Article  >  Database  >  MySQL 压力测试工具_MySQL

MySQL 压力测试工具_MySQL

WBOY
WBOYOriginal
2016-06-01 13:52:11828browse

<strong class="command">mysqlslap 是一个压力测试的工具</strong><strong class="command"></strong>
<strong class="command">用法:</strong>
<strong class="command"> </strong><p style="display: inline !important;" class="programlisting">shell> <strong class="userinput"><code>mysqlslap [<em class="replaceable"><code>options</code></em>]</code></strong></p>
<p style="display: inline !important;" class="programlisting"><strong class="userinput"><code>一些选项例如 <code class="option">--create 或者 <code class="option">--query 让你用来指定一个SQL语句或者包含SQL语句的文件</code></code></code></strong></p>
<b>mysqlslap分三个阶段:<br /></b>
<b>1.创造模式,表,并且选择任何要存储的你要测试的程序或数据。这一阶段采用单一的客户端连接。</b>
<b>2.运行负荷试验。这一阶段可以使用许多客户端连接。</b>
<b>3.清理(断开,删除表如果说明)。这一阶段采用单一的客户端连接。</b>
<b>参数设置:http://dev.mysql.com/doc/refman/5.1/en/mysqlslap.html</b>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn