Perconamysql5.7Centos/RedHat-RPM包在安装过程中不显示密码。它是在错误日志中。自动生成的my.cnf包含这行log-error=/var/log/mysqld.log。所以,这是我们的密码:[root@izuf61hued2py4dh0dsgfyzlyh]#cat/var/log/mysqld.log|grep"temporarypassword"2017-06-26T04:28:05.5379..
分类:
数据库 时间:
2017-06-30 22:14:37
阅读次数:
1539
故障为:实例控制台的的界面是iPXE(http://ipxe.org)00:03.0C980PCI2.10PnPPMM解决方法:首先执行#yuminstallcentos-release-openstack-mitaka(我装的是M版的)将相关的repo的源下载下来(注意了!CentOS-QEMU-EV.repo这个源是必须要有的,你没有这个源是没有办法#virshversio..
分类:
Web程序 时间:
2017-06-29 17:38:02
阅读次数:
1719
pt-summary主要是用来统计机器信息: [root@mxqmongodb2 bin]# ./pt-summary # Percona Toolkit System Summary Report ###################### Date | 2017-06-27 02:47:13 ...
分类:
其他好文 时间:
2017-06-29 11:19:09
阅读次数:
180
pt-index-usage能够从日志当中分析索引的使用情况,并且生成一个报表。下面看一下基本的语法: pt-index-usage [OPTIONS] [FIILE] 打印报告: pt-index-usage /path/to/slow.log --host localhost 将报告写入到一个数 ...
分类:
其他好文 时间:
2017-06-28 20:39:12
阅读次数:
226
对于一个网站来说,在运行很长一段时间后,数据库瓶颈问题会越来越暴露出来。作为运维人员,对数据库做必要的优化十分重要!下面总结以往查阅到的以及自己工作中的一些优化操作经验,并根据OSI七层模型从下往上进行优化mysql数据库记录。 一:物理层面1、cpu:2-16个 2*4双四核,L1L2越大越好2、 ...
分类:
数据库 时间:
2017-06-27 10:55:30
阅读次数:
206
1.mysql慢查询分析工具1.参考文档:http://www.ttlsa.com/mysql/analyse-slow-query-log-using-anemometer/http://isadba.com/?p=655官方文档:https://github.com/box/Anemometer数据库管理员一般是用percona的toolkit工具来分析MySQL慢查询记录,但是不够直观。下面介绍一款..
分类:
数据库 时间:
2017-06-25 20:20:49
阅读次数:
259
pt-heartbeat是用来监控主从延迟的一款percona工具,现在我们大部分的MySQL架构还是基于主从复制,例如MHA,MMM,keepalived等解决方案。而主从环境的话,我们很关心的就是主从延迟的问题,一般情况下我们在从库执行以下语句: mysql> show slave status ...
分类:
其他好文 时间:
2017-06-23 19:21:15
阅读次数:
172
1.首先得能访问外网络 2.yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm 3.yum install Percona-Server- ...
分类:
其他好文 时间:
2017-06-23 15:46:24
阅读次数:
141
系统环境:[root@slavesrc]#cat/etc/redhat-release
CentOSrelease6.8(Final)
[root@slavesrc]#uname-a
Linuxslave2.6.32-642.13.1.el6.x86_64#1SMPWedJan1120:56:24UTC2017x86_64x86_64x86_64GNU/Linux一:下载软件地址https://www.percona.com/downloads/XtraBackup/LATEST/wge..
分类:
其他好文 时间:
2017-06-22 11:11:13
阅读次数:
327
分析某个时间段内,表的select、insert、update、delete次数。需要用到percona-toolkit包中的一个工具pt-query-digest,脚本如下:[root@syk~]#catget_list.sh
#!/bin/bash
set-x
#slow_file=ai-db1-slow.log
slow_file=$1
if[$#!=1];then
echo"USAGE:$0slow.log"
echo"e.g.:$..
分类:
其他好文 时间:
2017-06-21 20:04:23
阅读次数:
254