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.
貌似是没有某种权限的样子。
后来在网上找了一下,发现有不类似问题,