Use Percona XtraBackup in multiple instances
Background
Percona XtraBackup is a backup tool developed by Percona. It mainly has two tools: XtraBackup and innobackupex. Innobackupex encapsulates XtraBackup and is a perl script. This document is relatively simple. innobackupex is used to back up data of 3306 instances an
Make a little progress every day-mysql -- Percona XtraBackup (innobackupex), perconaxtrabackupI. Introduction
Percona XtraBackup is an open-source and free MySQL Database Hot Backup Software. It can back up InnoDB and XtraDB storage engine databases in a non-blocking manner (Table locks are also required for MyISAM backup
, Socket:/var/lib/mysql/ Mysql.sockUsing Server version 5.6.25Innobackupex version 2.4.7 based on MySQL server 5.7.13 Linux (x86_64) (revision id:6f7a799)Xtrabackup:uses posix_fadvise ().XTRABACKUP:CD to/var/lib/mysql/Xtrabackup:open files limit requested 0, set to 1024Xtrabackup:using the following InnoDB configuration:Xtrabackup:innodb_data_home_dir =.Xtrabackup:innodb_data_file_path = Ibdata1:12m:autoextendXtrabackup:innodb_log_group_home_dir =./Xtrabackup:innodb_log_files_in_group = 2Xtrabac
If the data in the MySQL production database on the line is mistakenly deleted, and the DBA goes to recover the data, it is discovered that the database is not backed up, Binlog, or open. Is there any other means to try to recover the data? Percona Company provides an unconventional repair tool that can be used to repair table data. Of course, this tool is limited:1, only for the InnoDB engine table 2, the table Row_format must be redundant or compact
users with the ability to install and switch from MySQL to Percona Server.
By doing so, you can use the XtraDB storage engine. Percona Server claims to be fully compatible with MySQL, So theoretically you do not need to change any code in the software.
This is indeed a great advantage and is suitable for quality control when you are looking for fast performance improvements. Therefore, a good reason for us
version, try to use the latest, of course, the official website also provides RPM package, However, to facilitate the download of the binary package for rapid deployment installation:[Email protected] src]# wget https://www.percona.com/downloads/xtrabackup/percona-xtrabackup-2.4.5/> binary/Tarball/percona-xtrabackup-2.4.5-linux-x86_64.tar.gz[[email protected] src]# TAR-ZXVF
Introduction of Percona-toolkitPercona-toolkit is a collection of advanced command-line tools for performing various MySQL and system tasks that are complex and cumbersome to perform by hand, including:
Check the consistency of master and slave data
Effectively archive records
Look for Duplicate indexes
Summarizing Server information
Analyze queries from logs and tcpdump
Collect important system information when something goes wr
1, automatic installation of Percona Yum Warehouse (the following are x86_64 and i386 platform respectively)
#rpm-IVH http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm#rpm-IVH http://www.percona.com/redir/downloads/percona-release/percona-rel
Label:First, IntroductionPercona Xtrabackup is open source free MySQL database hot backup software, it can be InnoDB and XTRADB storage Engine database non-blocking backup (for MyISAM backup also need to add a table lock). Xtrabackup supports all Percona servers, MySQL, mariadb, and drizzle. Xtrabackup Advantages:1, no
Configure the Percona Yum repository under centos5.6 and install the Xtrabackup toolFirst, install the dependencies:Yum Install PERL-DBIYum Install Perl-dbd-mysqlYum Install Perl-time-hiresYum Install Perl-io-socket-sslSecond, configure the Yum source,Method 1, automatically install Percona's Yum warehouse (the following are x86_64 and i386 platforms respectively)#rpm-IVH http://www.percona.com/downloads/percona
ReloadTesting:On one Percona server:Mysql-uroot-pMysql> Grant All on * * to [e-mail protected] '% ' identified by ' password ' with GRANT option;From MySQL client:Mysql-h 192.168.70.10-uroot-pTo back up a database using Innobackupex:Mkdir-p/data/backupsFull backup:1. Innobackupex--user=sstuser--password=s3cret/data/backupsRestore full backup:1. Innobackupex--app
Install Percona Server in rpm package
Percona XtraDBIt is an enhanced version of the InnoDB Storage engine and is designed to better use and update the performance of computer hardware systems. It also contains some new features in high-performance environments. The XtraDB storage engine is completely backward compatible, so you can use XtraDB to replace the InnoDB Storage engine.
, wsrep_node_address=200.200.168.24 to install each MySQL service, you need to modify its own IP2. Wsrep_sst_method: The slave node needs to be set to rsync in order to synchronize successfully when it is just installedThe MySQL service in each cluster is installed as per the above stepsAfter the installation is complete, you can start MySQL.The way to start MySQL, if it is the primary server, use/etc/init.d/mysql BOOTSTRAP-PXC, if it is a backup serv
Install and use Xtrabackup from Percona to back up MySQL
Install and use Xtrabackup from Percona to back up MySQL
1. Install XtraBackup
If it is a 32-bit system, just put the content of xtrabackup0.9.zip in the bin directory of mysql.
You can also compile the database together. Take 5.0.88 as an example:First download its source code:Note: It must be compiled with the mysql source code.
# Tar zxvf mysq
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.