代码例子:
CREATE EVENT `course_listener`
ON SCHEDULE EVERY DAY STARTS '2012-07-18 00:00:00'
ON COMPLETION PRESERVE
ENABLE
DO
UPDATE `om_courselist` SET `status`= WHERE `status`= AND `closetime`<CURRENT_TIMESTAMP();

可以用navicat创建事件,更快捷:

Navicat创建和设计MySQL事件

1.开启定时器 0:off 1:on

SET GLOBAL event_scheduler = 1;

2.在navicat左侧选择一个数据库,单击“时间”-“创建事件”,弹出一个窗口。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmgAAAHfCAIAAABrqrNOAAAgAElEQVR4nO3dfZAc5WHn8b7K1d25Lrmr1F3FF8fkUpdLtLZxHQk7W951Un45cGRkbAeRFKKym8ayx69xIA4xUUSQ9xVj7B2bSySMeZd3F+8gjEEb2TiWIweY3cAKyyBsDwZBMNoXCVYBCeMC+v7o6Z6nn36e7ueZnZnu2f1+6inY6emXp3tmnl8/T/eMnHO2jVMoFAqFQjEszjnbxi+68R4KhUKhUPJT7n//+/NQ4hUjOCkUCoWSx5J5ZBKcFAqFQumkknlkEpwUCoVC6aSSeWQSnBQKhULppJJ5ZBKcFAqFQumkknlkNi04d932o0tvfV5XNnzwkcyPNYVCoVByVboS6ZbKPDKbGZwXfHZRVwhOCoVCoUilzcHpeZ7neclT2h2cC088qytnbHQzf4UoHV/Gx3q7Np87njDP1Lmburq27hQnbt4qT6EYH+2uswbbvd0LLz2/q+uSzZnvPqUtJSEdW9TjFJNyNanZtOD0PG/PnXuV/yU4KUZl8JLaqebWnZu3Jp+MCsJcFJJ189aurk1jWxTBOXXuJn+x5AxeK2V8rDd6tEyzsFXBuevsrq7eS6d0M6w+OMOXPvuDT0kr7Q/OMC9XmZpNC849d+7VFYKTYlQGL0lqNNN6nBdeen7QYk6du6nWOqt7nOmd17wXk4DxTz6i4bfr7K4uo2RqKDhTa5U6ANBQcEojDfVXn5Lzkklwrr6vSY+TkqciB2fYO9SIdCyErkysmxUIwnIdBOfmrdqANOqTtSI4DQ57M4LT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wQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgIXmBCcAAOsEwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBiXTTt99FoVAyLFm3AYggOJGOzy2QIT6AeUNwIh2fWyBDfADzhuBEOj63QIb4AOYNwYl0fG6BDPEBzBuCE+la/rmtlvr6StWGF2x4caATEJx5k5vgnCk6juM4TnGmmWtFUzT+uVVEWvBKiy93JsFJ3KJDEJx509rg7I03kWozRad3vOp51fHe3nHasrxpWnBWS32O6jHBCegRnHnT4uAMU7A63puQndXxXrqaORZ+bvv6SqVicBZULfVJJ0XylPrjvlLV86qlvuKMONUpzvgTwwyLr1PoofpzO9Iqg+AsFaNLxlYVrY1UNyC/CM68aVdwekJvsjoe9ET9x5GxO6d3vFod7+0dH5fbwehS9Xn8Rny816Gv2ir14KwH2kxRjMfijGpKtFdXLRVrgRU+V8vRYsmfLb6G+tyymWItSP3gDCs2U3SUqxLWNFMMgp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Xb9pvnantXzlULMe5ckQrzqwfsU7ms3pcQLNwm/VAsgVghN5R3AC6CAEJwAAFqyDk0KhUCiUdV4sgpNCoVAoFEq8EJwUCoVCoVgUgpNCoVAoFItCcFIoFAqFYlEITgqFQqFQLArBSaFQKBSKRakFJ4VCoVAoFMPy/wHfNdR4b6PT1wAAAABJRU5ErkJggg==" alt="" width="374" height="291" />

在定义选项输入SQL语句,以BEGIN开头,以END结尾。

如果是在本地运行,Definer为root@localhost。

3.计划任务,每隔一段时间就有固定需求的操作,如创建表,删除数据等操作。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmgAAAHfCAIAAABrqrNOAAAgAElEQVR4nO3dfZAc5WHn8b7K1d25zrmr1F3Fl8TkksslWiu4jgStKqyT8suBIyPjOIi4EBVJQ2SvX+J1hBQCUUTAYncGY7A25hyEl5cFZGnxgPAatNGC47VxYFYKrLQYhOXBSBCMdoWAlUDCci0890fP9Dz99NNP99Mzu92z/f3UU7DT09P9dPc8/Zvn6Z6Rc/7GLRQKhUKhUGIW5/yNWy6942EKhUKhULJTKh//eBZKsGIEJ4VCoVCyWFKPTIKTQqFQKO1UUo9MgpNCoVAo7VRSj0yCk0KhUCjtVFKPTIKTQqFQKO1UUo/MlgXn1nsOXn7362Fl0SefTn1fUygUCiVTpcMo7FWpR2Yrg/PiL02HFYKTQqFQKEqZ5+AUQgghzFPmOzinDr0aVs5aVkj9CFHarGwpndOx4oIthnmGLlje0bH2ZnniirXqFErsvd1x7ub5Xu8ll1/U0XHZitQ3n5JSMaTjHPU45aRsJjVbFpxCiJ3Du7T/JTgpmrL5stoHy7U3r1hr/ugp8XJRStYVazs6lpdWaoJz6ILl7svMGbxQypbSOf69FTcL5yo4t57X0XHO5UNhMzQfnN6hN89jqAMlxTL/wenlZZOp2bLg3Dm8K6wQnBRN2XyZ6aQZ1eO85PKL6mfMoQuW186M+h5ndOc16yVOwLgfPvzht/W8jo5YyZQoOCNrFTkAkCg4lZGGxtE3VIPgzGZJ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AwALBCQCABYITAAAL1sE5CABAXgkhkgSnAAAgf5oKzrQ7ygAAzDeCEwAACwQnWoz3BoCFjeBEi/HeALCwEZxoMd4bABa2OQzOrfccvPzu18PKok8+PT9b2KYuuGn8fV96ZNHGhxZf8733XvvI4qu+995rH3nPVY/87ubv/fblD5x1zffSrmCo+MEpnh74Tt/yH3z1z1/49tXijbG5rlhMW3Y0SumuVzYNHP2rr/700i8dvvCaZz98xTPvW/fU2X85KZe06wtgvs1tcF78pemwkkpwLtu0LWaZ/7opPvLVPbufnBJH/028NSuOvyzemBHHXxZvzQoh/t3iNc4HLku7gqFiBqd48h/v/3rv8VOz/WPVz7//l1YvdsRTg/NQvUgjDx/+i1tm3PLpW4//1Z2vX7nj5Ob7fvblB05/dffs1offcoubmr+/anva9QUw3+Y2OKcOvRpWzlpWmJ8tlLmJOD6+9/Sp199+8+TbPzvlK2/Njo/v/aX/c+EZ5185/3VTvO/6x37lCw+KYz9d2bdoZd+iIy889/yzP37z+DFx/Fjnl8ed876YdgVDxXlv7P3yB2aOPLX70OlvPfuzgck3vv7kmzftO/Un/8MR+2+bn0oajDx8+OuD90UWghPIrbkNTiHEzuFd2v+GBafjODEnGqaHWbZp20c2bXODc3x8r1LefP34+Pjej2zaZgjOmGu0rVjQeV8Zf/df/5N49cWZo0fd7PzRUz+amnpJvHLkrL8bdT7w99qVajVTvQQbEue9Mfb37xXi5E37Tg1MvDa4/7XB/a8NPvnGTftOXb38l6zWZaie/JT7d8xtGXn4cPzvQRuCM87qzPMENyHxigC00NwG587hXTuHdw0M//iOXc/d/sAh96FbtMEZdoLzpntJECceguTgDJa3Tp+MGZwtTKYw531l/HeuetiNzBsfe/+Nj71/Zd+i12deETMvn/OlMeeDV8dcaYLqxTxfh4nz3thR+A/i5JOjz58emJipBef+12558s1LftcRRx80183MvBVxNscNzi1bthw4cODuu+/evXv37t27+/r6vLB85dd+K05wxlxd/OzXvtnkTbNtDgCSmcPgvPSqsX0vnHzuyNSvdl606I8LZ37008t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JxaS8ptlxkAcEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwALBCQCABYITAAALBCcAABYITgAALBCcAABYIDgBALBAcAIAYIHgBADAAsEJAIAFghMAAAsEJwAAFghOAAAsEJwAAFggOAEAsEBwAgBggeAEAMACwQkAgAWCEwAACwQnAAAWCE4AACwQnAAAWCA4AQCwQHACAGCB4AQAwEJTwQkAQA4lDM4ZAAByzDo4nwEAIMfocQIAYIHgRPqeeeaZtKsAAHERnEgfwQmgjcxvcE4UOzuLEy2qOhYMghNAG2k2OMsFx1GzcKLYWSi7T7k6i+Vip+OnCdD2iNVywSmUW7mcckG3M3LFGJyxdnjtPRc6dSLwBnQc32LdtTTes7p5AGBmptngLBfcUKyd+GunON9JzJeG3oNywZuoPaV1Ficmip2pBYq/Tv5aEJytlyQ4pbdQWG6anoi1jhgv07xHvKmaT5SB91KseA5/YcQ7R31h441teqHlq7SVibNp/k/d8eoGZEEzwemduuoNLRictVAIfpDXNRCvvU4UO+ev9UwUO32Ne6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TIGZ9jCJ4pFaaeEjd62naa/juI7nOpHjto4gPqu898Uaz9Uq9/x0lRd98y3zMAbPIx/SaZVmF6o9h1D3zbRr2pM1FVGu2m6jdRWP2qbgHk1p8Epn8aU4HQ0uaAwB6tdcCqLUz7xa6Yr0agZXFLr6rueqllR41N148pX7bN1oRCrxxm+8GACBKK9/dgHp380PdALUnZ81L5JFJyBN21tEerR970ipPMV8ckn7OKo9QulOsfsp+pfJe8QXWU0mxYRnFIbaeM3MvKiie9x+k8c9SHOxntf/gDqaOk+/NfFv8Y5B5RzIk15jinBqf8cpXvnhPWbJmp3WqtXDkOWo/0wxFEH8ivY0WxNjxNoFX6rFkCmEJzIOoITQBshOAEAsGAdnBQKhUKh5LxYBCeFQqFQKJRgITgpFAqFQrEoBCeFQqFQKBaF4KRQKBQKxaIQnBQKhUKhWBSCk0KhUCgUi1ILTgqFQqFQKDHL/wdpkUboqBmWPQAAAABJRU5ErkJggg==" alt="" width="379" height="295" />

3-1. AT 时间戳,用来完成单次的计划任务。

3-2. EVERY 时间(单位)的数量时间单位[STARTS 时间戳] [ENDS时间戳],用来完成重复的计划任务。时间单位较多,按需选择。

在两种计划任务中,时间戳可以是任意的TIMESTAMP 和DATETIME 数据类型,时间戳需要大于当前时间。

最后保存就OK了

附上mysql事件的语法:

MySQL 或 MariaDB 事件语法

MySQL 事件计划是在 MySQL 5.1.6 添加。MySQL 事件是按计划运行工作。因此,我们有时称它们为计划事件。当你创建一个事件时,你是创建一个有名的数据库对象,包含在一个或多个规律区间运行一个或多个 SQL 语句,并在特定的日期时间开始及结束。从概念上,这是类似 Windows 任务计划程序的概念。点击 来打开 事件 的对象列表。

定义

定义包括一个有效的 SQL 语句。这可以是一个简单的语句,如 SELECTINSERT,或它可以是一个用 BEGINEND 写的复合语句。复合语句可以包含声明循环和其它控制结构语句。

提示:要自定义编辑器的视图并查看更多 sql 编辑功能,请看编辑器高级功能

定义者
指定当在事件运行时检查访问权限要使用的用户帐号。默认定义者值是运行 CREATE EVENT 语句的的用户。(这是和
DEFINER = CURRENT_USER 相同。)如果给予一个用户值,它应该是一个 'user_name'@'host_name' 格式的
MySQL 帐号(使用在 GRANT 语句相同的格式)。user_name 及 host_name 值都是必须的。

状态
你可以创建一个事件但可以用 DISABLE 关键字保持不激活。或者,你可以用 ENABLE 来出明确默认状态,这是激活。

ON COMPLETION
正常情况下,一旦事件已过期,它将立即删除。你可以通过指定 ON COMPLETION PRESERVE 来重写此性能。使用 ON COMPLETION NOT PRESERVE 只是使默认非持久性的性能明确。

计划

AT
AT timestamp 用于一次性事件。它指定该事件只运行一次于 timestamp 的日期和时间,它必须同时包含日期和时间,或必须是一个解析为 datetime 值的表达式。使用 +INTERVAL 来创建一个事件,它发生在与当前日期和时间有关的将来某个时候。

EVERY
在定期间隔重复的行动,你可以用一个 EVERY 子句之后是一个 interval。(+INTERVALEVERY 不能同时使用。)

STARTS
EVERY 子句还可能包含一个非必须的 STARTS 子句。STARTS 之后是一个 timestamp 值表示行动应该何时开始重复,也可以用 +INTERVAL 间隔以指定「由现在开始」的时间量。

例如:EVERY 3 MONTH STARTS CURRENT_TIMESTAMP + 1 WEEK 的意思是「每 3 个月,从现在起一周后开始」。

ENDS

EVERY 子句还可包含一个非必须的 ENDS 子句。ENDS 关键字之后是一个 timestamp 值告诉 MySQL 何时停止重复事件。你也可以用 +INTERVAL 间隔与 ENDS 一起。

例如:EVERY 12 HOUR STARTS CURRENT_TIMESTAMP + INTERVAL 30 MINUTE ENDS CURRENT_TIMESTAMP + INTERVAL 4 WEEK 相当于「每十二个小时,从现在起三十分钟后开始,并于现在起四个星期后结束」。

P.S. timestamp 必须在未来的 - 你不能安排一个事件发生在过去。
 

interval 区间由两部份组成,数量和时间单位*。
*YEAR | QUARTER | MONTH | DAY | HOUR | MINUTE |
WEEK | SECOND | YEAR_MONTH | DAY_HOUR | DAY_MINUTE |
DAY_SECOND | HOUR_MINUTE | HOUR_SECOND | MINUTE_SECOND

来源:http://www.navicat.com.cn/manual/online_manual/cn/navicat/win_manual/EventsMySQL.html

mysql计划任务每天定时执行的更多相关文章

  1. webapi + windows计划 + mshta 实现定时执行任务

    当然,实现定时任务有更好的操作方式,比如方式一:asp.net mvc+quartz.net +corn +webapi,asp.net mvc做任务管理的平台,使用CronTrigger做定时触发, ...

  2. Navicat 创建mysql存过、定时执行存过

    创建存过: 使用Navicat for MySQL工具创建存储过程步骤: 1. 新建函数(选择函数标签 -> 点击新建函数): 2.输入函数的参数个数.参数名.参数类型等: 3.编写存储过程: ...

  3. MySQL架构优化:定时计划任务与表分区

    转自: MySQL架构优化实战系列3:定时计划任务与表分区 - 今日头条(TouTiao.com)http://toutiao.com/a6304736482361049345/?tt_from=mo ...

  4. 通过MSSQl作业定时执行批处理BAT文件

    前言 有些时候,我们可能会需要定时执行一下批处理来达到一定的目的,比如Oracle数据库的定时备份,当然Oracle也可以通过Rman实现定时备份.我们大多数的时候是通过操作系统的计划任务实现定时执行 ...

  5. MySQL定时执行脚本(计划任务)命令实例

    在mysql中我们可以直接进行一些参数设置让它成定时为我们执行一些任务了,这个虽然可以使用windows或者linux中的计划任务实现,但是mysql本身也能完成 查看event是否开启 复制代码 代 ...

  6. mysql命令行创建存储过程命令行定时执行sql语句

    mysql -uroot -p show databases; use scm; show tables; show procedure status; 其他命令: SHOW VARIABLES LI ...

  7. mysql定时执行及延时执行,实现类似sql server waitfor功能

    熟悉SQL Server的人都知道,它有一个很有用的功能,waitfor time和waitfor delay,前者表示在某个时间执行,后者表示等待多长时间执行.在我们测试功能和定时执行的时候特别有用 ...

  8. Windows Server 2008通过计划任务定时执行bat文件

    前段时间在Windows Server 2008安装了一套基于MySQL数据库的软件,处于数据安全的考虑,希望每天能够自动进行数据库备份.我在别人脚本的基础上自己写了一个数据库备份的bat脚本,双击该 ...

  9. SQL优化 MySQL版 -分析explain SQL执行计划与Extra

    Extra 作者 : Stanley 罗昊 [转载请注明出处和署名,谢谢!] 注:此文章必须有一定的Mysql基础,或观看执行计划入门篇传送门: https:.html 终于总结到哦SQK执行计划的最 ...

随机推荐

  1. 自定义多列排序:C++/Java实现

    前言: 有些时候,我们在编程中会遇到多列排序的需求.假如在execle,这事儿就太easy了.不过没办法,现在就需要你用Java或者C++实现这样一个功能! 比如将下表无序的数据通过重排之后按照以下规 ...

  2. 【BZOJ-4548&3658】小奇的糖果&Jabberwocky 双向链表 + 树状数组

    4548: 小奇的糖果 Time Limit: 10 Sec  Memory Limit: 256 MBSubmit: 103  Solved: 47[Submit][Status][Discuss] ...

  3. 一款可以下拉搜索html下拉框控件

    直接上图,组件不错,支持静态和动态搜索,这个只是在原控件上自己修改样式后的,这里主要记录一下,在修改别人控件时,应该如何去封装代码: 原控件:http://ivaynberg.github.com/s ...

  4. Bzoj2563 阿狸和桃子的游戏

    Time Limit: 3 Sec  Memory Limit: 128 MBSubmit: 701  Solved: 496 Description 阿狸和桃子正在玩一个游戏,游戏是在一个带权图G= ...

  5. [NOIP2014] 提高组 洛谷P1351 联合权值

    题目描述 无向连通图G 有n 个点,n - 1 条边.点从1 到n 依次编号,编号为 i 的点的权值为W i ,每条边的长度均为1 .图上两点( u , v ) 的距离定义为u 点到v 点的最短距离. ...

  6. Objective-C Runtime与黑客帝国

    Runtime的消息机制让我容易想起黑客帝国的Matrix.而OC语言,就像是架构在C语言真实世界上的Matrix世界,Runtime接管了这个虚拟世界到真实世界的承接. 在黑客帝国里,Matrix的 ...

  7. xml解析模块

    XML XML是可扩展标记语言的缩写,是实现不同语言或程序之间进行数据交换的协议,主要可以对key添加属性. 页面做展示(字符类型的一个xml格式数据)\做配置文件(内部xml格式的数据).,每一个节 ...

  8. OpenGLES入门笔记三

    在入门笔记一中比较详细的介绍了顶点着色器和片面着色器. 在入门笔记二中讲解了简单的创建OpenGL场景流程的实现,但是如果在场景中渲染任何一种几何图形,还是需要入门笔记一中的知识:Vertex Sha ...

  9. Codeforces Round #345 D. Image Preview(二分)

    题目链接 题意:看一个图片需要1单位时间,如果是 w 需要翻转 b 时间,切换到相邻位置(往左或者往右)需要 a 时间,求T时间最多能看几张图片 从第一个开始向右走看若干个图片然后往如果往左走就不会再 ...

  10. ionic 发送请求返回一直都是404

    在web端调试一直都没有问题,生成app之后发现所有的请求返回的都是404, 断掉wifi和4G之后发送的也是404 原因是未引入插件 解决方法是在根目录下执行一下命令 cordova plugin ...