摘要:
#!/bin/bash bak_dir='/data/dbbak/' for i in `ls $bak_dir` do bak=`find ${bak_dir}${i}/ -mtime -1 -name "*.gz"` for n in $bak do size=`du -sh $n |awk -F' ' '{print $1}'` p... 阅读全文
摘要:
A method is on an object. A function is independent of an object. For Java, there are only methods. For C, there are only functions. For C++ it would 阅读全文
摘要:
修改配置文件:my.cnf 加上skip-grant-tables 重启mysql mysql -uroot 登录 mysql> USE mysql ; mysql> UPDATE user SET Password = password ( 'new-password' ) WHERE User 阅读全文