1. Check whether event is enabled show variables like '%sche%'; two, -- Set the time zone and set the event scheduler to ON, or event_scheduler = ON -- Set the database base database used or to which this event belongs -- If there is a task plan with this name, delete it first -- Set the delimiter to '$$'. The default statement delimiter for MySQL is ';'. This way, the subsequent create to end code will be treated as a single statement for execution. -- Create a scheduled task, set the first execution time to '2012-11-15 10:00:00', and execute it once a day -- on schedule every 30 seconds create event test_update -- Start the task to do ----------------------------------- -- End the scheduled task -- Set the statement separator back to ';' The above is all I have to say about MySQL event planning. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: A set of code based on Vue-cli supports multiple projects
>>: Practical example of Vue virtual list
top command is the best command that everyone is ...
The MERGE storage engine treats a group of MyISAM...
The hyperlink a tag represents a link point and i...
Table of contents 1. What is a regular expression...
For websites with an architecture like LNMP, they...
Preface In the early stages of some projects, dev...
I encountered such a problem when doing the writte...
This article shares with you how to install Kylin...
This article example shares the specific code of ...
Copy code The code is as follows: <object clas...
This article example shares the specific code of ...
Table of contents Routing Manager background gett...
Table of contents Preface Earlier iterations Iter...
Table of contents 1. Built-in objects 2. Math Obj...
The difference between := and = = Only when setti...