随笔 - 316  文章 - 1 评论 - 4 阅读 - 40万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

07 2015 档案
Mysql slave 状态之Seconds_Behind_Master
摘要:在MySQL的主从环境中,我们可以通过在slave上执行show slave status来查看slave的一些状态信息,其中有一个比较重要的参数Seconds_Behind_Master。那么你是否明白它的真正含义以及它是怎么计算的呢? 在之前我一直误以为Seconds_Behind_Mas... 阅读全文
posted @ 2015-07-23 13:20 馒头斋 阅读(571) 评论(0) 推荐(0) 编辑
shell编程——if语句 if -z -n -f -eq -ne -lt
摘要:if条件thenCommandelseCommandfi别忘了这个结尾If语句忘了结尾fitest.sh: line 14: syntax error:unexpected end of fiif 的三种条件表达式ifcommandthenif函数then命令执行成功,等于返回0 (比如grep ,... 阅读全文
posted @ 2015-07-22 22:39 馒头斋 阅读(274) 评论(0) 推荐(0) 编辑
shell判断条件是否存在
摘要:1. shell判断文件,目录是否存在或者具有权限2. #!/bin/sh3.4. myPath="/var/log/httpd/"5. myFile="/var /log/httpd/access.log"6.7. # 这里的-x 参数判断$myPath是否存在并且是否具有可执行权限8. if [... 阅读全文
posted @ 2015-07-22 22:14 馒头斋 阅读(2219) 评论(0) 推荐(0) 编辑
linux shell if 参数
摘要:shell 编程中使用到得if语句内判断参数 –b 当file存在并且是块文件时返回真 -c 当file存在并且是字符文件时返回真 -d 当pathname存在并且是一个目录时返回真 -e 当pathname指定的文件或目录存在时返回真 -f 当file存在并且是正规文件时返回真 -g ... 阅读全文
posted @ 2015-07-21 16:34 馒头斋 阅读(166) 评论(0) 推荐(0) 编辑
MYSQL使用二进制日志来恢复数据
摘要:mysqlbinlog工具的使用,大家可以看MySQL的帮助手册。里面有详细的用,在这个例子中,重点是--start-position参数和--stop-position参数的使用。·--start-position=N从二进制日志中第个位置等于N参量时的事件开始读。·--stop-position... 阅读全文
posted @ 2015-07-20 20:49 馒头斋 阅读(400) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示