摘要: 利用mysqld_multi启动管理多实例 官方管理多实例的一个脚本peer #将之前的目录清空 [root@mysql01 mysql]# tree /data/mysql/ /data/mysql/ ├── mysql_3306 │ ├── data │ ├── logs │ ├── my330 阅读全文
posted @ 2016-08-21 13:28 柏林之花 阅读(4732) 评论(0) 推荐(0) 编辑
摘要: L001-老男孩教育-Python13期VIP视频-19节-pbb Windows上安装 Python3开发环境 下载:www.python.org >选择Downloads>All releases- python3.5.2 设置环境变量:编辑>系统变量Path>在最后加入 ;D:\softwar 阅读全文
posted @ 2016-07-07 20:34 柏林之花 阅读(3751) 评论(0) 推荐(0) 编辑
摘要: L014-oldboy-mysql-dba-lesson14 来自为知笔记(Wiz) 附件列表 附件列表 阅读全文
posted @ 2016-07-07 17:09 柏林之花 阅读(247) 评论(0) 推荐(0) 编辑
摘要: L012-oldboy-mysql-dba-lesson12 graphite监控mysql可以达到秒级别 Zabbix for mysql NagiosXI daemontools linux 监控进程重启等 来自为知笔记(Wiz) 阅读全文
posted @ 2016-07-07 17:08 柏林之花 阅读(136) 评论(0) 推荐(0) 编辑
摘要: L013-oldboy-mysql-dba-lesson13 02 18:00 来自为知笔记(Wiz) 阅读全文
posted @ 2016-07-07 17:08 柏林之花 阅读(116) 评论(0) 推荐(0) 编辑
摘要: L010-oldboy-mysql-dba-lesson10 来自为知笔记(Wiz) 阅读全文
posted @ 2016-07-07 17:07 柏林之花 阅读(130) 评论(0) 推荐(0) 编辑
摘要: L011-oldboy-mysql-dba-lesson11 [root@ab01 ~]# mysqladmin -i 1 -r status #mysqladmin监控的命令 Uptime: 674695 Threads: 47 Questions: 1417844 Slow queries: 1 阅读全文
posted @ 2016-07-07 17:07 柏林之花 阅读(180) 评论(0) 推荐(0) 编辑
摘要: L009-oldboy-mysql-dba-lesson09 mysql> grant replication salve,replication client on *.* to ‘repl_user’@’10.0.0.%’ identified by ‘testpassword’; mysql> 阅读全文
posted @ 2016-07-07 17:06 柏林之花 阅读(170) 评论(0) 推荐(0) 编辑
摘要: L007-oldboy-mysql-dba-lesson07 [root@web01 ~]# mysqldump -uroot -ptestpassword -A >/root/mysql_backup/testbackup20141026.sql #全库备份 [root@web01 ~]# mysqladmin -... 阅读全文
posted @ 2016-07-07 17:05 柏林之花 阅读(139) 评论(0) 推荐(0) 编辑
摘要: L008-oldboy-mysql-dba-lesson08 xtrabackup安装 [root@web01 installer]# wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.3/binary/ 阅读全文
posted @ 2016-07-07 17:05 柏林之花 阅读(166) 评论(0) 推荐(0) 编辑
摘要: L006-oldboy-mysql-dba-lesson06 数据清理状态,先标记update table state=1,再删除。 myisam没外键,硬件,并发,锁表力度,不支持事务,OLAP。 06: 04 来自为知笔记(Wiz) 阅读全文
posted @ 2016-07-07 17:04 柏林之花 阅读(140) 评论(0) 推荐(0) 编辑
摘要: L005-oldboy-mysql-dba-lesson05 在线改表工具:pt-onine-schema-change 来自为知笔记(Wiz) 阅读全文
posted @ 2016-07-07 17:03 柏林之花 阅读(145) 评论(0) 推荐(0) 编辑
摘要: L004-oldboy-mysql-dba-lesson04 [root@web01 mysql]# mysql -uroot -ptestpassword -S /tmp/mysql.sock mysql> select inet_aton('192.168.1.200'); + + | inet 阅读全文
posted @ 2016-07-07 17:01 柏林之花 阅读(129) 评论(0) 推荐(0) 编辑
摘要: L003-oldboy-mysql-dba-lesson03 IOPS:每秒钟输入输出的数量 [root@web01 ~]# cat /proc/meminfo [root@web01 ~]# cat /proc/cpuinfo [root@web01 ~]# sysctl -a |grep swa 阅读全文
posted @ 2016-07-07 17:00 柏林之花 阅读(148) 评论(0) 推荐(0) 编辑
摘要: L002-oldboy-mysql-dba-lesson02 [root@web01 ~]# mysql -uroot -ptestpassword mysql> use mysql; mysql> show tables; show create table user; use test; cre 阅读全文
posted @ 2016-07-07 16:59 柏林之花 阅读(179) 评论(0) 推荐(0) 编辑
摘要: L001-oldboy-mysql-dba-lesson01 《sql应用重构》经典的书 ,思想,封顶境界! mysql下载页面: http://www.filewatcher.com/m/mysql-5.5.32-linux2.6-x86_64.tar.gz.186722932-0.html [r 阅读全文
posted @ 2016-07-07 16:58 柏林之花 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 真正的inotify+rsync实时同步 彻底告别同步慢 http://www.ttlsa.com/web/let-infotify-rsync-fast/ 背景 我们公司在用inotify+rsync做实时同步,来解决分布式集群文件一致性的问题。但当web文件越来越多(百万级数量html,jpg等 阅读全文
posted @ 2016-07-07 16:55 柏林之花 阅读(686) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash dpath="/mysql_backup" mydays="7" username="root" mysql_pwd="redhat" xmysql="/application/mysql/bin/mysql -u$username -p${mysql_pwd}" xmysq 阅读全文
posted @ 2016-07-07 16:50 柏林之花 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 测试。。。 阅读全文
posted @ 2016-07-07 16:48 柏林之花 阅读(95) 评论(0) 推荐(0) 编辑