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
To install a virtual machine on a Windows system,...
Table of contents Preface Main implementation cod...
Table of contents 1. Basics 2. Problem Descriptio...
I am using the Ubuntu 16.04 system here. Installa...
Optimizing and refining information is always the ...
Table of contents 1. Background 2. Table creation...
Recorded the installation of mysql-8.0.12-winx64 ...
Table of contents 1. Delete the old version 2. Ch...
Problem Description In the login page of the proj...
background Not long ago, I made a function about ...
A brief analysis of rem First of all, rem is a CS...
This article uses examples to illustrate the prin...
1. Check the character set 1. Check the MYSQL dat...
This article shares the second article of using j...
Configuration Instructions Linux system: CentOS-7...