When it need to execute the sql or procedure periodically, it use to event function.
1. setup environment
set global event_scheduler=ON;
2. setup scheduling job
The below job execute on every 04:00 am periodically
create event if not exist test_event
on schedule every '1' day
starts '2020-07-07 04:00:00'
do
call test_event();
'RDB > MySQL' 카테고리의 다른 글
MySQL Simple hint (0) | 2020.07.20 |
---|---|
MySQL spool output (0) | 2020.07.08 |
MySQL table / column rename (0) | 2020.06.29 |
aws rds replication 설정 변경 (0) | 2020.06.17 |
mysql select 시 내부 소스코드 call flow (0) | 2020.06.16 |