38

在navicat上设置定时计划执行存储过程

 5 years ago
source link: http://mushiming.top/mushblog/archives/914?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

2 次查看

应用情景:

有一个存储过程,需要每天定时执行一次。所以在navicat上使用事件处理,当然还有其他的方法,这只是一种。作为参考

1.事件定义填写

NfQveqe.png!web

2.事件计划设置

riaIVjm.png!web

3.保存

点击上方保存即可

常见问题:

navicat for mysql 创建事件的时候,保存时弹出提示“事件计划已关闭。事件只能在服务器启动并开启事件计划时才能处理。

解决方法:

检查一下MYSQL的和系统变量 event_scheduler

show variables like ‘event_scheduler ‘;

从你的描述看来应该是没有打开。 set global event_scheduler=on; 打开这个设置。

赞赏

fIr2AfU.jpg!web 微信赞赏 JBfe2q7.jpg!web 支付宝赞赏

BVfeeun.png!web

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK