摘要: 2015-09-24### AUTHOR: Leo### DATE: 2015/09/24### REV: 1.0[client]port = 3306socket = /tmp/mysql.sock[mysql]auto-rehashdefault-character-set = utf8... 阅读全文
posted @ 2015-09-24 10:20 岑亮 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 2015-09-23mysql导出1.导出数据库mysqldump -u用户名 -p密码 库名 > 库名_backup.sql2.只导出所有表结构,不导出表数据mysqldump -u用户名 -p密码 -d 库名 > 库名_d_backup.sql3.只导出所有表数据,不导出表结构mysqldump... 阅读全文
posted @ 2015-09-23 18:16 岑亮 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 2015-09-23#delete_table_data.sh#批量删除mysql库中表数据#!/bin/bash### AUTHOR: Leo### DATE: 2015/09/23### REV: 1.0echo -e "Input the dbname you want to use: \c"... 阅读全文
posted @ 2015-09-23 17:22 岑亮 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 2015-09-18 搜狐开源镜像站http://mirrors.sohu.com/ 网易开源镜像站http://mirrors.163.com/ 阿里云开源镜像站http://mirrors.aliyun.com/ 公云开源镜像站http://mirrors.pubyun.com/ 首都在线开源镜 阅读全文
posted @ 2015-09-18 15:55 岑亮 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 2015-09-07#kill_sleep.sh#mysql批量杀死sleep进程#!/bin/bashMYSQL_OPT="/usr/bin/mysql -uroot --socket=/var/lib/mysql/mysql.sock -ppro#pateo"DIR="/tmp"$MYSQL_O... 阅读全文
posted @ 2015-09-07 15:18 岑亮 阅读(2794) 评论(0) 推荐(0) 编辑
摘要: 2015-09-07#backup_daily_report.sh#myql备份日检报告#!/bin/bash### AUTHOR: Leo### DATE: 2015/09/07### REV: 1.0echo -e " `date +%Y-%m-%d` ivi backup dailyrepor... 阅读全文
posted @ 2015-09-07 15:02 岑亮 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 2015-09-07#nagios批量安装客户端###在客户端批量安装nagios-plugin和nrpe#!/bin/bashHOST_LIST=`cat nagios_hosts.txt`for i in $HOST_LISTdo #从跳板机将相关软件复制到nagios客户端 scp... 阅读全文
posted @ 2015-09-07 14:49 岑亮 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 2015-09-07#inno_backup.sh#mysql备份innodb引擎数据库#!/bin/bash### AUTHOR: Kobezhu### DATE: 2015/05/12### REV: V0.1source /etc/profilesource /root/.bash_profi... 阅读全文
posted @ 2015-09-07 14:42 岑亮 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 2015-09-07#add_remote_user_bat.sh#linux批量创建远程用户#!/bin/bash### AUTHOR: Joe### DATE: 2015/07/12### REV: 1.0if [ ! -n "$1" ];then echo -e "Input the us... 阅读全文
posted @ 2015-09-07 14:29 岑亮 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 2015-09-07#add_remote_user.sh#liunx创建远程用户帐号#!/bin/bash### AUTHOR: Joe ### DATE: 2015/08/05### REV: 1.0if [ ! -n "$1" ];then echo -e "Input the usern... 阅读全文
posted @ 2015-09-07 14:20 岑亮 阅读(497) 评论(0) 推荐(0) 编辑