Ubuntu下MySQL性能测试之sql-bench

1.安装DBI
cpan
install DBI

2.安装DBD-mysql
wget http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.013.tar.gz
tar zxvf DBD-mysql-4.013.tar.gz

3.确认my.cnf的socket路径为/tmp/mysql.sock
nano /etc/my.cnf
/tmp/mysql.sock

4.安装
perl Makefile.PL -testdb=test -testuser=root -testpassword="root"
make
make test
make install

5.测试所有
/usr/local/mysql/sql-bench/run-all-tests -server=mysql -user=root -password=root -log -fast

6.在output下会生成测试报告

你可能感兴趣的:(sql,mysql,socket,SQL Server,ubuntu)