1、配置 epel 源安装 sysbench yum install -y sysbench 2、初始化数据 sysbench /usr/share/sysbench/tests/include/oltp_
1、配置 epel 源安装 sysbench
yum install -y sysbench
2、初始化数据
sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua \
--Mysql-host=192.168.1.226 \
--mysql-port=3306 \
--mysql-user=root \
--mysql-passWord=MySQL5.7 \
--oltp-test-mode=complex \
--oltp-tables-count=10 \
--oltp-table-size=100000 \
--threads=10 \
--time=120 \
--report-interval=10 \
--db-driver=mysql prepare
3、执行测试
sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua \
--mysql-host=192.168.1.226 \
--mysql-port=3306 \
--mysql-user=root \
--mysql-password=MySQL5.7 \
--oltp-test-mode=complex \
--oltp-tables-count=10 \
--oltp-table-size=100000 \
--threads=10 \
--time=120 \
--db-driver=mysql \
--report-interval=10 run
4、清理数据
sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua \
--mysql-host=192.168.1.226 \
--mysql-port=3306 \
--mysql-user=root \
--db-driver=mysql \
--oltp-tables-count=10 \
--mysql-password=MySQL5.7 cleanup
--结束END--
本文标题: MySQL 测试工具 sysbench
本文链接: https://www.lsjlt.com/news/41019.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-14
2024-05-13
2024-05-13
2024-05-13
2024-05-13
2024-05-12
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0