设为首页 加入收藏

TOP

MySQL Study之--MySQL innodb引擎备份工具XtraBackup之一(Install)(四)
2015-11-21 01:38:16 来源: 作者: 【 】 浏览:3
Tags:MySQL Study --MySQL innodb 引擎 备份工具 XtraBackup 之一 Install
root@rh64 XtraBackup]# rpm -ivh *
warning: percona-xtrabackup-2.3.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ? ? ? ? ? ? ? ?########################################### [100%]
? ?1:percona-xtrabackup ? ? ########################################### [ 33%]
? ?2:percona-xtrabackup-test########################################### [ 67%]
? ?3:percona-xtrabackup-debu########################################### [100%]
?
? ----安装成功!!!
? ?
[root@rh64 XtraBackup]# man innobackupex
INNOBACKUPEX(1) ? ? ? ? ? ? ? Percona XtraBackup ? ? ? ? ? ? ? INNOBACKUPEX(1)
NAME
? ? ? ?innobackupex - innobackupex Documentation
?
? ? ? ?The ?innobackupex ?tool is a Perl script that acts as a wrapper for the xtrabackup C program. It
? ? ? ?is a patched version of the innobackup Perl script that Oracle distributes with the ?InnoDB ?Hot
? ? ? ?Backup tool. It enables more functionality by integrating xtrabackup and other functions such as
? ? ? ?file copying and streaming, and adds some convenience. It lets you perform point-in-time backups
? ? ? ?of ?InnoDB ?/ ?XtraDB tables together with the schema definitions, MyISAM tables, and other por-
? ? ? ?tions of the server.
? ? ? ?This manual section explains how to use innobackupex in detail.
PREREQUISITES
? ?Connection and Privileges Needed
? ? ? ?Percona XtraBackup needs to be able to connect to the database server and perform operations ?on
? ? ? ?the ?server ?and ?the ?datadir when creating a backup, when preparing in some scenarios and when
? ? ? ?restoring it. In order to do so, there are privileges and permission requirements on its ?execu-
? ? ? ?tion that must be fulfilled.
? ? ? ?Privileges ?refers ?to ?the ?operations ?that ?a ?system user is permitted to do in the database
? ? ? ?server. They are set at the database server and only apply to users in the database server.
? ? ? ?Permissions are those which permits a user to perform operations on the ?system, ?like ?reading,
? ? ? ?writing ?or ?executing ?on a certain directory or start/stop a system service. They are set at a
? ? ? ?system level and only apply to system users.
? ? ? ?Whether xtrabackup or innobackupex is used, there are two actors involved: the user invoking the
? ? ? ?program ?- ?a ?system ?user - and the user performing action in the database server - a database
? ? ? ?user. Note that these are different users in different places, even tough they may have the same
? ? ? ?username.
? ? ? ?All the invocations of innobackupex and xtrabackup in this documentation assumes that the system
? ? ? ?user has the appropriate permissions and you are providing the relevant options ?for ?connecting
? ? ? ?the database server - besides the options for the action to be performed - and the database user
? ? ? ?has adequate privileges.
? ?Connecting to the server
? ? ? ?The database user used to connect to the server and its password are specified by the --user and
? ? ? ?--password option,
? ? ? ? ? ?$ innobackupex --user=DBUSER --password=SECRET /path/to/backup/dir/
? ? ? ? ? ?$ innobackupex --user=LUKE ?--password=US3TH3F0RC3 --stream=tar ./ | bzip2 -
? ? ? ? ? ?$ xtrabackup --user=DVADER --password=14MY0URF4TH3R --backup --target-dir=/data/bkps/
?
首页 上一页 1 2 3 4 下一页 尾页 4/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇不同场景下 MySQL 的迁移方案 下一篇mysqlworkbench水平滚动条不见的..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: