Difference between revisions of "Mysqlstap: tutorial dasar"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: mysqlslap Tutorial : Basics on MySQL Stress Test Tool Here is basic mysqlslap Tutorial to perform MySQL stress test. MySQL comes with mysqlslap, a benchmarking tool which can help you to t...) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | Perintah dasar | |
+ | |||
+ | mysqlslap --user=USERNAME --PASSWORD --host=localhost/IP ADDRESS --auto-generate-sql --verbose | ||
+ | |||
+ | Menambahkan concurrency dan iterations | ||
+ | |||
+ | mysqlslap --user=USERNAME --PASSWORD --host=localhost --concurrency=40 --iterations=20 --auto-generate-sql --verbose | ||
+ | |||
+ | Contoh perintah ke database wordpress | ||
+ | |||
+ | mysqlslap --user=root --password --host=localhost --concurrency=40 --iterations=10 --create-schema=wordpress --query="SELECT * FROM wp_commentmeta;" --verbose | ||
− | |||
− | |||
==Referensi== | ==Referensi== | ||
* https://thecustomizewindows.com/2014/10/mysqlslap-tutorial-basics-mysql-stress-test-tool/ | * https://thecustomizewindows.com/2014/10/mysqlslap-tutorial-basics-mysql-stress-test-tool/ |
Latest revision as of 09:30, 8 June 2015
Perintah dasar
mysqlslap --user=USERNAME --PASSWORD --host=localhost/IP ADDRESS --auto-generate-sql --verbose
Menambahkan concurrency dan iterations
mysqlslap --user=USERNAME --PASSWORD --host=localhost --concurrency=40 --iterations=20 --auto-generate-sql --verbose
Contoh perintah ke database wordpress
mysqlslap --user=root --password --host=localhost --concurrency=40 --iterations=10 --create-schema=wordpress --query="SELECT * FROM wp_commentmeta;" --verbose