2012.07.06 07:07
Mysql banchmark tool – sysbanch 설치하기
hostway # wget http://sourceforge.net/projects/sysbench/files/sysbench/0.4.12/sysbench-0.4.12.tar.gz/download
hostway # tar xvfz sysbench-0.4.12.tar.gz
hostway # cd sysbench-0.4.12
hostway # ./autogen.sh
hostway # ./configure --prefix=/usr/local --with-mysql-includes=/usr/local/mysql/include/mysql --with-mysql-libs=/usr/local/mysql/lib/mysql
hostway # make && make install
# TEST DB 생성
hostway # mysql -u root -p
SQL> create database sbtest;
SQL> grant all on sbtest.* to sbtest@localhost identified by 'sbtest' with grant option;
SQL>grant all on sbtest.* to sbtest identified by 'sbtest' with grant option;
SQL> flush privileges
# mysql.sock 파일 위치는 지정한 위치에 따라 다를 수 있습니다. Rpm 으로 설치 된 경우 /var/lib/mysql/mysql.sock
./sysbench --test=oltp --mysql-table-type=myisam --oltp-table-size=10000 --mysql-password=sbtest --mysql-socket=/tmp/mysql.sock prepare
#테스트 실행
./sysbench --num-threads=16 --max-requests=1000 --test=oltp --oltp-table-size=10000 --mysql-socket=/ tmp/mysql.sock --mysql-password=sbtest --oltp-read-only run
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
5 | Mysql 에서 많이 쓰이는 명령어 | sylee | 2008.05.15 | 36492 |
4 | MySQL Binary Log 지우는 방법 | 호스트웨이 | 2012.03.09 | 37545 |
3 | MYSQL-날짜 관련 함수 모음 | 호스트웨이 | 2015.09.09 | 40691 |
2 | mysql 원격 접속 허용하기 | hostway | 2008.05.14 | 42437 |
1 | MYSQL 접속 - 소켓 지정하여 접속하기 | 호스트웨이 | 2015.09.23 | 58378 |