首页 > 代码库 > xtrabackup安装与使用

xtrabackup安装与使用

--安装xtrabackup
su - root
yum install perl-Time-HiRes


ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql

vi .bash_profile
export PATH=$PATH:/usr/local/mysql/bin

source .bash_profile

--直接运行会报错 /usr/bin/mysql is needed by percona-xtrabackup-2.0.7-552.rhel6.x86_64
rpm -ivh percona-xtrabackup-2.0.7-552.rhel6.x86_64.rpm --nodeps

 

xtrabackup安装与使用