date 月日时分年.秒date -s可以直接设置系统时间比如将系统时间设定成1996年6月10日的命令如下。#date -s 06/10/96将系统时间设定成下午1点12分0秒的命令如下。#date -s 13:12:00时间同步1.首先需了解linux内一任务计划工具crontab cronta...
分类:
其他好文 时间:
2014-09-19 15:27:35
阅读次数:
230
MySQL多线程备份工具:mydumperhttp://www.orczhou.com/index.php/2011/12/how-to-split-mysqldump-file/Mydumper是一个针对MySQL和Drizzle的高性能多线程备份和恢复工具。开发人员分别来自MySQL,Faceb...
分类:
数据库 时间:
2014-09-19 08:46:35
阅读次数:
333
测试可以了,做个笔记 系统是centos 6.31,直接命令 crontab -e编辑文件,里面写时间和你想要执行的命令。例子*/1 * * * * sh /home/guanliyang/try.sh#上面是每一分钟执行下 try.sh文件,测试成功。0 1 * * * sh /home/guan...
分类:
系统相关 时间:
2014-09-18 16:19:34
阅读次数:
205
#!/bin/shDELDIR="/root/crontab_test/test"#3 minute agoDELTIME="-mmin +3"#delete file typeFILETYPE1="'*.txt'"FILETYPE2="'*.log'"#write to tmp filerm cr...
分类:
系统相关 时间:
2014-09-18 09:38:33
阅读次数:
210
今天在备份MYSQL数据库的时候,导出TEST数据时发现报错:C:\Users\Administrator>mysqldump-uroot-ptest>test.sqlEnterpassword:****mysqldump:Goterror:1168:Unabletoopenunderlyingtablewhichisdifferentlydefinedorofnon-MyISAMtypeordoesn‘texistwhenusingLOCKTABLES..
分类:
数据库 时间:
2014-09-17 15:30:12
阅读次数:
195
通过SSH将MySQL数据库复制到新服务器 mysqldump –add-drop-table –extended-insert –force –log-error=error.log -uUSER -pPASS OLD_DB_NAME | ssh -C user@newhost “mysql -....
分类:
其他好文 时间:
2014-09-17 15:01:02
阅读次数:
192
crontab: 名称 : crontab 使用权限 : 所有使用者 使用方式 : crontab [ -u user ] filecrontab [ -u user ] { -l | -r | -e } 说明 : crontab 是用来让使用者在固定时间或固定间隔执行程式之用,换句话说,也就是...
分类:
系统相关 时间:
2014-09-16 19:15:41
阅读次数:
306
crontab用法:crontab[-uuser]filecrontab[-uuser]{-l|-r|-e}-l:显示crontab文件内容。-e:利用vim编辑用户crontab文件。-i:删除用户crontab文件前确认提示。-r:从crontab目录中删除用户crontab文件。(crontab-ri)-uuser:指定使用者。/etc/cron.deny:该文件内的用户不允许使..
分类:
其他好文 时间:
2014-09-16 10:55:21
阅读次数:
181
刚接触mysql,今天接到任务要对数据库进行备份。从网上找了半天资料,但是还是一直报错:mysqldump:unknownoption‘--no-beep‘。网上有很多人说了解决问题的办法,但是都没作用。最后在隔壁论坛找到了解决方法。使用:mysqldump--no-defaults-h服务器域名-u用户名-p密码数据库名..
分类:
数据库 时间:
2014-09-15 19:45:50
阅读次数:
240
转载:http://blog.longwin.com.tw/2008/07/mysql_set_master_slave_replication_fase_online_2008/已经在线上运作的MySQL Master, 希望能在最短的时间内做mysqldump, 然后马上就让他还原上线, 所以主...
分类:
数据库 时间:
2014-09-15 12:39:48
阅读次数:
343