effective, for other types is not necessarily oh. For example: decimal
The advantage is that you need to lock the table only when the Copy table structure 2. Adopt Percona tool to deal with
Execute a statement that modifies a table
Mysql> ALTER TABLE test1 add column nickname varchar (a) default ';Query OK, 0 rows affected (12.33 sec)records:0 duplicates:0 warnings:0
Can see the operation time is still a l
Percona-xtradb-cluster Environment" 3 nodes deployed on a single physical server "First, related software installation#安装前确认源安装mysql已经卸载#rpm-qa |grep mysql*#rpm-E--nodeps mysql-server-5.1.73-5.el6_6 mysql-libs-5.1.73-5.el6_6 mysql
First, the environment:
10.1.16.65 CentOS7.2 (PMM Server)
10.1.16.52 CentOS7.2 MySQL 5.7.16-master (PMM Client)
10.1.16.53 CentOS7.2 MySQL 5.7.16-slave (PMM Client)
Ii. preparatory work
Check the iptables of the three servers to see if SELinux is closed or in permissive
Third, installation
1. Install PMM Server on 10.1.16.65:
At present official PMM only Docker mirror, so need to deploy first Docker
Yu
Check Port 9200 Inter 12000 RI SE 3 Fall 3 server MYSQL-PXC02 192.168.163.7:3306 Check Port 9200 Inter 12000 rise 3 Fall 3 backend stats-back mode HTTP b
Alance roundrobin stats uri/haproxy/stats stats auth Pxcstats:secret backend pxc-onenode-back mode TCP balance Leastconn Option Httpchk Server mysql-pxc01 192.168.163.6:3306 Check Port 9200 Inter 12000 Rise 3 Fall 3 server
Tags: copy First name Live Sync ati Storage sha Cal httpPercona XtraDB Cluster (PXC) cluster is a general multi-master synchronous replication plug-in based on Galera and transactional application, which is mainly used to solve the strong consistency problem, so that the data of each node is kept in real-time synchronization and multi-node simultaneous reading and writing is realized. It is one of the well-known cluster optimization schemes in MySQL r
Tags: percona xtradb cluster 5.5First, the installation of PXC requirements1, strongly recommend more than 3 nodes and hardware configuration, one node performance is affected, the overall affected, following the barrel effect2. If a DDL statement has a problem, it will break the cluster3. Create the database table engine must be innodb, or the composite SQL statement cannot be synchronized4. Create a database table must have a primary key index, or a
:6600,192.168.1.210:6602 ': -110 (Connection timed out)Tip I can't join PXC this cluster, view my.cnf configuration file Changes wsrep_cluster_address= ' gcomm://192.168.1.210:6630,192.168.1.210:6632 'The address of this cluster to fill the address of the PXC node to communicate with each other, can not fill in the MySQL service address, the default address is the listening address is 4567
Error Two:
How to resolve can ' t connect to local
Need to use Percona-xtrabackup Backup to install this, it seems now this changed into a CMake installation, a little trouble.Why pick 2.3.4 version, because I heard that 2.3.3 unprepared for a deadlock.Functional requirements, using Innobackupex and xtrabackupInstall the dependency package first:Yum-y Install cmake gcc gcc-c++ libaio libaio-devel automake autoconf BZR bison libtool zlib-devel libgcrypt-devel libc Url-devel crypt* libgcrypt* python-sph
About Percona installation and use of information, online quite a lot, but everyone encountered a different problem, the point of attention is not the same, so I will pay attention to the things I recorded
Percona-toolkit Installation
1. Download Percona-toolkit source package, percona-toolkit_2.2.15-2.tar.gz
Decompre
Percona-toolkit is a set of tools under Linux, and we need to use the pt-query-digest to analyze the MySQL slow log query.1. DownloadHttp://www.percona.com/doc/percona-toolkit/2.1/Download percona-toolkit-2.2.11-1.noarch.rpm2. Pre-installationNeed to install a MySQL packageA
??? Preface for more information about MySQL derivative PerconaServer, please search ~ The prospects for the most open-source software under the control of Oracle are worrying ~ How many mysql derivative versions can be used? Percona is used as the production database of oschina. I'm not afraid! Haha! Definitely! Because I
? ?? Preface for more information about
In CentOS 6.4 installation deployment Percona Xtrabackup, perform full backup script, backup unsuccessful, view log, error is as follows:11:15:51 innobackupex:connecting to MySQL server with DSN ' Dbi:mysql:;mysql_read_default_file=/etc/my.cnf;mysql_read_ Default_group=xtrabackup;mysql_socket=/data/lib/mysql/mysql.sock ' as ' dump ' (using Password:yes).Innobacku
This was done before Percona XtraDB Cluster (Configuration See linkhttp://hans925.blog.51cto.com/542170/1607157)Now with Haproxy to Percona XtraDB cluster do load balancing, machine or those two machines, (originally do load balancing three machines, but personal notebook run two virtual machine on a bit card, so it used two). The haproxy was installed on the first Percona.HaproxyOs:ubuntu 14.04 Server ip:1
After using Percona xtrabackup to do a full standby and two incremental backups, part of a table's data has been mistakenly deleted, how to recover mistakenly deleted data.
Thinking: will be fully prepared and incremental backup, the latest backup generated binary log all copied to the test environment, in the test environment after the deleted data recovery, will mistakenly delete data generation INSERT statement, on the original machine execution.
Pt-config-diffCompare MySQL configuration files and server parametersExample:PT-CONFIG-DIFF/ETC/MY.CNF h=192.168.53.11--user=root--password=123456--socket=/tmp/mysql.sockpt-config-dirr/etc /my.cnf/etc/my_slave.cnfThe contents are as follows:21configdifferencesvariable /etc/my.cnf m11============================= ==============================================event_scheduler OFF onexpire_logs_ days21 14innodb_io_capacity1200 800innodb_max_dirty_pages.
To build the Innodb-tools tool, you need to rely on the C compiler, make tool, and so on.
1, download decompression innodb-tools tool Source:
wget https://launchpad.net/percona-data-recovery-tool-for-innodb/trunk/release-0.5/+download/ percona-data-recovery-tool-for-innodb-0.5.tar.gz
TAR-ZXVF percona-data-recovery-tool-for-innodb-0.5.tar.gz
2, into the decompr
1. Download source
percona-xtradb-cluster-5.7.19-29.22.tar.gz-https://www.percona.com/downloads/percona-xtradb-cluster-latest/
Openssl-1.2.j.tar.gz
2. Compile OpenSSL
#CFLAGS =-fpic/config--prefix=/opt/openssl-1.0.2j/.
#make make Install
3. Compile PXC
#mkdir output
#./build-ps/build-binary.sh Output--with-ssl/opt/openssl-1.0.2j/
If everything goes well, you can find the compression package for the final
MySQL's online table structure is modified because of inefficient and blocking read and write. has been criticized. As for the principle of alter TABLE, see my previous article. MySQL modifies the large table structure online. After reading, found that the problem is still locked, and for the online update of this block is not very good processing, so can only be understood theoretically, applied to the online library or there is a problem. The latest
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.