安装Sysbench

11月 9th, 2009 | Posted by | Filed under 操作系统

本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明
网址: http://www.penglixun.com/tech/system/install_sysbench.html

在NinGoo大牛博客上看到了这个性能测试工具,就拿下来试试,不过编译的时候遇到了些问题。

出现类似下面的错误



../libtool: line 2412: Xsysbench: command not found
../libtool: line 2547: X-lmysqlclient_r: command not found
../libtool: line 2547: X-lz: command not found
../libtool: line 2547: X-lcrypt: command not found

经查只要执行./autogen.sh再进行configure就行了。

当出现:


FATAL: unable to connect to MySQL server, aborting…
FATAL: error 1049: Unknown database ‘test’
FATAL: failed to connect to database server!

只需要指定–mysql-db=test(一个已存在的数据库)就可以了。

参考文章:
http://www.ningoo.net/html/2009/performance_test_tool_sysbench.html
http://cqfish.blog.51cto.com/622299/159604

标签:
目前还没有任何评论.