preceding command statement (for the convenience of line feed ). If you install a separate software package, remember to resolve the dependency. Before installing the client, you must first install the shared package. Before installing the server, install the client.5. Configure the Percona ServerRestore the previous configurationWhen we migrate data from MariaD
Originally was ready to install Maatkit, but Maatkit has become a part of the Percona-toolkit, so simply install Percona-toolkit directly.
Preparing for the installation environment (very important), because Percona-toolkit requires a Perl environment, you know what we have to prepare for what it needs. The following is a summary of my experience of the installa
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
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
Repositories, rpm, Binary Tarball, Source Tarball, Git Source Tree, etc. You can select the appropriate method based on the actual environment. For detailed installation steps, see the official documentation. The following describes how to install the rpm package on RHEL 6.Installing
Percona ServerUsing rpm packages1 download package
Wget https://www.percona.com/downloads/
Percona-toolkit installation and introduction, percona-toolkit
MySQL database is one of the best lightweight and open-source databases. Its features, management, and robustness are quite different from those of Oracle. Therefore, there are many powerful third-party derivative products, such as percona-toolkit and XtraBackup.
://www.percona.com/downloads/Percona-Server-5.5/Percona-Server-5.5.42-37.1/binary/redhat/7/x86_64/
Use the RPM tool to install all RPM packages at once:
The code is as follows:
RPM-IVH percona-server-server-55-5.5.42-rel37.1.el7.x86_64.rpm
percona-server-client-55-5.5.42-rel37.1.el7.x86_64.rpm
how to install and do basic configuration on Percona server.2. Back up your databaseNext, use the SQL command at the command line to create a mydatabases.sql file to rebuild or restore the SalesDB and Employeedb databases, replace the database name based on your settings, and skip this step if no MySQL is installed:Mysqldump-u root-p--databases employeedb salesdb > Mydatabases.sqlCopy the current profile and skip it if you don't have MySQL installed:
how to install and do basic configuration on Percona server.2. Back up your databaseNext, use the SQL command at the command line to create a mydatabases.sql file to rebuild or restore the SalesDB and Employeedb databases, replace the database name based on your settings, and skip this step if no MySQL is installed:Mysqldump-u root-p--databases employeedb salesdb > Mydatabases.sqlCopy the current profile and skip it if you don't have MySQL installed:
.el7.x86_64.rpm
Note the backslash '\' At the end of the preceding command Statement (for the convenience of line feed ). If you install a separate software package, remember to resolve the dependency. Before installing the client, you must first install the shared package. Before installing the server, install the client.
5. Configure the Percona Server
Restore
/get_mysql_stats_wrapper.sh gg If a number is returned, the success of the execution is proven. Note: by vim get_mysql_stats_wrapper.sh default in the CACHEFILE="/tmp/$HOST-mysql_cacti_stats.txt" /tmp/ next generation of a temporary file, this file after the test to be manually deleted! Otherwise, the program will not be able to delete the file, resulting in Zabbix unable to collect data! If the generated file is not data with the root user login manually, use the following command to test again
Original: 79656771Brief introductionBefore primarily using Nagios to monitor MySQL, this article mainly introduces the use of percona-monitoring-plugins monitoring Mysql,percona monitoring plug-in is PHP development, so to install PHP environment in the agent.Configure the installationI. zabbix-agent-side operation1. Install software dependenciesyum install php php-mysql -y
1
2.
Tags: OpenSSL 2.4 process database passwd adb body lower caseFirst, the environmentCentOS release 6.9Percona-XtraDB-Cluster-5.7.19-29.22.tar.gzboost_1_59_0.tar.gzpercona-xtrabackup-24-2.4.7-1.el6.x86_64.rpm
node
MySQL Service port
Gmcast.listen Port
node01:192.168.1.210:6600
6600
6630
node02:192.168.1.210:6602
6602
6632
Node03:gardb
No
5567
Second, download the dependency packa
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.