sysbench --db-driver=mysql --mysql-user=root --mysql-password=xDB2017# --mysql-db=gltest --range_size=100 --table_size=100000 --tables=2 --threads=16 --events=0 --time=60 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua prepare
sysbench --db-driver=mysql --mysql-user=root --mysql-password=xDB2017# --mysql-db=gltest --range_size=100 --table_size=100000 --tables=2 --threads=16 --events=0 --time=60 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
sysbench --db-driver=mysql --mysql-user=root --mysql-password=xDB2017# --mysql-db=gltest --range_size=100 --table_size=100000 --tables=2 --threads=16 --events=0 --time=60 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua cleanup
参考:
https://blog.csdn.net/kikajack/article/details/79977108
https://www.cnblogs.com/hally/p/8360637.html
https://www.aliyun.com/jiaocheng/1118568.html
https://www.cnblogs.com/kismetv/archive/2017/09/30/7615738.html
https://blog.csdn.net/oahz4699092zhao/article/details/53332105/
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20893244/viewspace-2215470/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20893244/viewspace-2215470/