07 2013 档案
摘要:在项目中用到了timestamp这个类型,该字段本意是用于存储改行记录的创建时间的,实际上这是一个很危险的设置;mysql官方文档上有这么一段话:TheTIMESTAMPdata type provides a type that you can use to automatically markINSERTorUPDATEoperations with the current date and time. If you have multipleTIMESTAMPcolumns in a table, only the first one is updated automatically.
阅读全文
摘要:mysql performance_schema 初探:mysql5.5 版本 新增了一个性能优化的引擎: PERFORMANCE_SCHEMA这个功能默认是关闭的:需要设置参数: performance_schema 才可以启动该功能,这个参数是静态参数,只能写在my.cnf 中不能动态修改。先看看有什么东西吧:mysql> use performance_schema;Database changedmysql> show tables ;+----------------------------------------------+| Tables_in_performanc
阅读全文
摘要:#! /bin/bashfor i in `cat test.list`do host=`echo $i|awk -F"," '{print $1}'` app_IP=`echo $i|awk -F"," '{print $2}'` rep_IP=`echo $i|awk -F"," '{print $3}'`echo $host $app_IP $rep_IPping=`ping -c 2 $rep_IP|grep loss|awk -F "%" '{pri
阅读全文

浙公网安备 33010602011771号