Usage of mysqltoolkit [memo] bitsCN.com
Mysql toolkit is a small plug-in used to monitor and analyze databases. it is usually used to call perl to analyze and compare the current environment and database. it is worth learning.
Http://www.percona.com/redir/downloads/percona-toolkit/LATEST/RPM/percona-toolkit-2.2.5-2.noarch.rpm
The following software may need to be added during installation
yum install -y perl-DBD-mysql perl-IO-Socket-SSLrpm -ivh percona-toolkit-2.2.5-2.noarch.rpm
Command list
. workbooks. Open (template_path_year); // the parameters in the add method here are the template path.VaR osheet = newbook. activesheet;//////////////////////////////////////// //// Write data to the template /////////////////////////////// ///////////////////////////////// // The name of the legal representative unit ////////////////////// //////////////////////////////////////// ///////////////////////////////Osheet. cells (2, 3). value = trim (Pt.
(template_path_year); // the parameters in the Add method here are the template path.Var oSheet = newBook. ActiveSheet;//////////////////////////////////////// //// Write data to the template /////////////////////////////// ///////////////////////////////// // The name of the legal representative unit ////////////////////// //////////////////////////////////////// ///////////////////////////////OSheet. Cells (2, 3). value = Trim (PT. rows [0]. cells
Summary of various basic algorithms (III)-tree and binary tree
Summary of various basic algorithms (III)-tree and binary tree
(ALL tests passed)
========================================================== ======================================
Binary Tree -- FIFO
Test environment: VC 6.0 (C)# Include
# Include
# Include
Struct_node {chardata; struct_node * lchild; struct_node * rchild;}; typedefstruct_nodenode, * pnode; pnodecreate_tree () {pnodept; chardata; scanf ("% c", data ); getchar (); if
IPhone, iPad, iPadMini interface design standard, iPhone iPadMini
I. iPhone
4.0 'display: iPhone 5, iPhone 5 S, and iPhone 5C. Resolution: 1136*960
For the design standard, refer to iPhone5.
3.5 'display: iPhone4S, iPhone4, and iPhone3GS (non-Retina screen) Resolution: 960*640
For the design standard, refer to iPhone4S.
3.5 'display non-Retina: iPhone3GS resolution: 480*320
For the design standard, refer to iPhone3GS.
2. iPad
9.7 'display: iPad Air, iPad 4, The New iPad resolution: 2048*1536
See
Tags: canonical permissions arch ase common commands beat monitoring MySQL format analysisI. Checking and installing Perl-related modules The PT tool is written and executed in the Perl language, so you need a Perl environment in your system.The dependent Package Check command is: rpm -qa perl-dbi perl-dbd-mysql perl-time-hires Perl-io-socket-sslIf you do have a dependent package, you can install it using the following command: Yum install PERL-DBIYu
Replication Class Tools1. Pt-heartbeatFunction Introduction:Monitor MySQL replication latencyUsage Introduction:Pt-heartbeat [OPTION ...] [DSN]--update|--monitor|--check|--stopMeasure how much time is left behind the main MySQL or main PostgreSQL, and you can use this script to update the master or monitor replication, as shown in the following example.Principle: Pt-heartbeat through real copy data to confi
-toolkit/3.0.2/binary/tarball/percona-toolkit-3.0.2_x86_64.tar.gzTAR-ZXVF percona-toolkit-3.0.2_x86_64.tar.gzCD percona-toolkit-3.0.2Perl makefile.plIf reported: BEGIN failed--compilation aborted at makefile.pl Line 1, need to be installed Perl-develYum Install Perl-develAfter installation, the Perl makefile.pl may not be able to find Dbi,dbd-mysql,io-socket-ssl.noarch,perl-time-hiresInstall it online using the following method:Yum Install PERL-DBIYum Install Perl-dbd-mysqlYum Install Perl-io-so
of percona-toolkitVerify MySQL replication integrity by checking master and replica data consistencyEfficiently archive rowsFind duplicate indexesSummarize MySQL serversAnalyze queries from logs and tcpdumpCollect vital system information when problems occur
2. installation requirements and stepsDownload link:Requirement* Perl v5.8 or newer* Bash v3 or newer* Core Perl modules like Time: HiRes # Perl -- version | head-2 # Check the perl version# Bash -- version # Check the bash version
Quick in
Oracle Basic Data Query
SELECT * FROM MERs WHERE customer_id not in (2, 3, 4, NULL); SELECT * FROM customers WHERE customer_id BETWEEN 1 AND 4; SELECT * FROM customers WHERE customer_id not between 1 AND 4; -- NAN indicates that it is not a number SELECT * FROM MERs WHERE customer_id is nan; -- logical operator and or not select * FROM customers WHERE dob> '01-JAN-1970 'AND customer_id> 3; SELECT * FROM MERs WHERE dob> '01-JAN-1970 'or not customer_id> 3; -- order by sort SELECT * FROM customers
function dlast_order_access () Parameter description:Btnode *head: Two fork tree root node pointer*/void Dlast_order_access (Btnode *head){if (head!=null){Dlast_order_access (Head->lchild); * Recursive traversal of the left subtree * *Dlast_order_access (Head->rchild); * Recursive traverse right subtree/*if (Showchar)printf ("%c", head->data);Elseprintf ("%d", head->data);}}------------------------------Recursive part------------------------------------------------------------non-recursive part
-child) tree currently being processed with a current pointer and the right subtree that is processed after the current tree is saved in a stack. First of all, visit the root node of the current tree data, the next should traverse its Saozi right subtree, but the control flow of the program can only handle one, so consider the right subtree root in the stack, the current pointer to the left subtree to be processed first, prepare for the next cycle; If the current pointer to a tree is empty, the
-toolkit-2.1.1Perl makefile.plMakeMake TestMake install
Three, commonly used functions1. Pt-duplicate-key-checkerFunction Introduction:feature to find duplicate indexes and foreign keys from MySQL tables, this tool lists duplicate indexes and foreign keys, and generates statements that delete duplicate indexes, which is convenientUsage Introduction:Pt-duplicate-key-checker [OPTION ...] [DSN]Contains a number of options, specific to the command
When practicing the H-end (rhev-h) of the Red Hat Enterprise virtualization RHEV, it was found that it could only be installed on a physical machine and could not be installed in a virtual machine. After groping, by modifying some parameters, the RHEVH can be installed perfectly on the VMware workstation, so it is much easier to practice.The steps are as follows:650) this.width=650; "Src=" http://ugc.qpic.cn/adapt/0/de3d9619-d680-171d-84ba-aee7b76e2a1a/800?p
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.