Linux系统运维笔记 查看系统版本和设置系统时间 查看系统版本 lsb_release -a (适用于所有的linux,包括Redhat.SuSE.Debian等发行版,但是在debian下要安装lsb) 一步到位,设置系统时间: date -s "20091112 18:30:50" &&hwclock --systohc 查看时区和时间 date //CST:中国标准时间(China Standard Time) //UTC:协调世界时,又称世界标准时间,简称UT…
1.查看是否开启evevt与开启evevt. 1.1.MySQL evevt功能默认是关闭的,可以使用下面的语句来看evevt的状态,如果是OFF或者0,表示是关闭的. show VARIABLES LIKE '%sche%'; 1.2.开启evevt功能 SET GLOBAL event_scheduler = 1; 2.创建定时器的过程 2.1.创建测试表test drop table if exists test; create table test ( id int(11) not nu…
原文:http://blog.csdn.net/lifuxiangcaohui/article/details/6583535 MySQL 定时器EVENT学习 MySQL从5.1开始支持event功能,类似oracle的job功能.有了这个功能之后我们就可以让MySQL自动的执行数据汇总等功能,不用像以前需要操作的支持了.如linux crontab功能. 创建测试表CREATE TABLE t( v VARCHAR(100) NOT NULL) ENGINE INNODB DEFAU…
mysql定时器是系统给提供了event,而oracle里面的定时器是系统给提供的job.废话少说,下面创建表: create table mytable ( id int auto_increment not null, name varchar(100) not null default '', introduce text not null, createtime timestamp not null, constraint pk_mytable primary key(id) ) 创建存…