摘要: mysql:5.6.29xtrabackup:2.2.10master:192.168.166.129slave:192.168.166.131mysql数据目录:/data/mysqlmysql备份目录:/data/dbbak/full #确保有足够的磁盘空间 在master及slave机器安装x 阅读全文
posted @ 2016-12-04 11:57 hufangrui 阅读(2653) 评论(0) 推荐(0) 编辑
摘要: 完整备份innobackupex --defaults-file=/etc/my.cnf --host=localhost --user=bkpuser --password=s3cret /data/dbbak/innobackupex/ --no-timestamp --compress --c 阅读全文
posted @ 2016-12-03 01:57 hufangrui 阅读(2890) 评论(0) 推荐(0) 编辑
摘要: xtrabackup下载https://www.percona.com/downloads/XtraBackup/LATEST/xtrabackup文档https://www.percona.com/doc/percona-xtrabackup/2.2/innobackupex/innobackup 阅读全文
posted @ 2016-12-03 00:45 hufangrui 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 插件源码地址https://github.com/mcafee/mysql-audit插件安装方法https://github.com/mcafee/mysql-audit/wiki/Installation插件下载地址https://bintray.com/mcafee/mysql-audit-p 阅读全文
posted @ 2016-12-02 18:28 hufangrui 阅读(2022) 评论(0) 推荐(0) 编辑
摘要: 1、查看rpm包里的文件 [root@VM_166_132 ~]# rpm -qlp mysql5.6.29-1-3.x86_64.rpm |more/etc/ld.so.conf.d/mysql-5.6.23_compiled_x86_64.conf/usr/local/lib/libjemall 阅读全文
posted @ 2016-12-02 18:24 hufangrui 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 参数说明 -i, --interactive prompt before overwrite (overrides a previous -n option) #文件存在是,交互式提示是否覆盖 -n, --no-clobber do not overwrite an existing file (o 阅读全文
posted @ 2016-12-02 15:40 hufangrui 阅读(71459) 评论(1) 推荐(2) 编辑
摘要: 1、统计整列唯一值的数量 =sumproduct(1/countif(offset(A1,,,COUNTA(A:A)),OFFSET(A1,,,COUNTA(A:A)))) 阅读全文
posted @ 2016-11-02 15:03 hufangrui 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1、查看当前容器的分布,并确定如何调整 db2look -d sample -l -cor -dp -o dd.sql 2、给表空间添加容器 db2 "alter tablespace tbname add (FILE '/data/db2inst1/NODE000/TEST/TEST_01' 1G 阅读全文
posted @ 2016-10-31 14:47 hufangrui 阅读(4820) 评论(1) 推荐(0) 编辑
摘要: 一、导入导出 ixf: db2 export to /tmp/xxx.csv of ixf lobs to . xml to . modified by codepage=1208 "select * from sysibm.dual" db2 import from tablename of ix 阅读全文
posted @ 2016-10-31 14:40 hufangrui 阅读(1334) 评论(0) 推荐(0) 编辑
摘要: 一、mutt命令 1、安装 yum -y install mutt 2、使用 echo "mail content"|mutt -s "mail title" test@test.com -a /tmp/test1.txt /tmp/test2.txt 二、uuencode命令 1、安装 uuenc 阅读全文
posted @ 2016-10-31 14:01 hufangrui 阅读(3174) 评论(0) 推荐(0) 编辑