MySQL/Mariadb基准测试工具-tpcc-mysql使用1

本文介绍了如何下载和编译tpcc-mysql,这是一个专为MySQL/MariaDB基准测试设计的工具。文章详细讨论了通过bzr、git和zip方式获取源码,并列举了编译过程中可能遇到的错误及其解决方案,包括mysql.h找不到、mysql_config命令缺失、编译器未找到、链接库缺失等问题。
摘要由CSDN通过智能技术生成

tpcc-mysql 是percona基于TPCC标准的mysql实现,专用于mysql基准测试。

tpcc-mysql 是percona基于TPCC标准的mysql实现,专用于mysql基准测试。源码已由launchpad移动到github上,项目地址:https://github.com/Percona-Lab/tpcc-mysql
launchpad上仍然可以继续使用,它是通过bazaar管理的。https://code.launchpad.net/~percona-dev/perconatools/tpcc-mysql

1.下载源码包

Bazaar是一款开源的分布式版本控制工具。分布式版本控制(Distributed Version Control System)是一种不需要中心服务器管理文件版本的方法,它也可以使用中心服务器。对版本的更改可以合并到使用分布式版本控制系统的其他用户的版本里,实现灵活的控制。另外,它大多数操作在客户机本地进行,不需要网络连接,因此比集中式服务器操作起来快得多。主流的分布式版本控制工具有Git, Bazaar, Mercurial等。集中式版本控制工具有SVN, CVS, VSS等。

1)通过bzr安装

安装bzr客户端

[root@localhost /]# yum -y install bzr

下载源码

[root@localhost /]# bzr branch lp:~percona-dev/perconatools/tpcc-mysql
#https://code.launchpad.net/~percona-dev/perconatools/tpcc-mysql

2)通过git安装

安装git客户端

[root@localhost /]# yum -y install git

生成ssh-key

[root@localhost /]# ssh-keygen -t rsa -C "github帐号"
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):    #回车
Enter passphrase (empty for no passphrase):                 #回车
Enter same passphrase again:                                #回车
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
2d:67:79:d1:f2:62:99:eb:37:c7:4b:9c:bb:49:8c:af github帐号
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|             .   |
|            o .  |
|         . o +   |
|        S * = .  |
|         B = o   |
|        ..* .    |
|        .+o=     |
|        E+Bo.    |
+-----------------+

设置ssh key

登录GitHub,设置ssh keys【setting –》SSH and GPG keys –》New SSH key】,将~/.ssh/id_rsa.pub中的内容复制到key中

下载源码

git clone git@github.com:xxx/xxxx.git

[root@localhost /]# git clone git@github.com:Percona-Lab/tpcc-mysql
#https://github.com/Percona-Lab/tpcc-mysql

常见错误:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
貌似是没有某种权限的样子。
后来在网上找了一下,发现有不类似问题,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值