当前位置:网站首页>Linux中,mysql设置job任务自动启动
Linux中,mysql设置job任务自动启动
2022-07-02 15:51:00 【梁萌】
1.连接到mysql服务
mysql -u root -p
2.找到需要操作的数据库
show databases;
3.查询当前数据库中的job
show events;
4.检查job是否启动
show global variables like '%event_scheduler%';
OFF代表没有启动,新建job后默认是OFF
5.开启job
set global event_scheduler = on;
6.再次查询job状态,已经变成ON
7.设置mysql重启后,job能自动启动
编辑/etc/my.cnf文件,在[mysqld]下添加 event_scheduler=1
边栏推荐
- 【网络是怎样连接的】第五章 探索服务器
- Daily question - xiaolele changes the number
- The bottom simulation implementation of vector
- Si446 usage record (I): basic data acquisition
- helm kubernetes包管理工具
- 将您的基于 Accelerator 的 SAP Commerce Cloud Storefront 迁移到 Spartacus
- Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer
- 蓝牙技术|物联网的可穿戴设备新工作模式,蓝牙BLE助力新工作模式
- 一日2篇Nature!中科大校友段镶锋团队纳米材料新成果,曾是贝尔比奖章第三位华人得主...
- PMS132B单片机TWS数码管蓝牙充电仓方案开发
猜你喜欢
[how to connect the network] Chapter 5 explore the server
Keras' deep learning practice -- gender classification based on vgg19 model
[非线性控制理论]8_三种鲁棒控制器的比较
vector的底层模拟实现
Keras深度学习实战——基于VGG19模型实现性别分类
我的创作纪念日
Platform management background and business menu resource management: business permissions and menu resource management design
阿里天池SQL学习笔记——DAY3
PFC232-SOP8/14/16应广一级可带烧录程序编带
【网络是怎么连接的】第四章 探索接入网和网络运营商
随机推荐
SAP Commerce Cloud Storefront 框架选型:Accelerator 还是 Spartacus?
AtCoder Beginner Contest 237 VP补题
2 juillet: BitTorrent est sorti; L'acquisition du système commercial linspire; Sony Deployment PlayStation now
[nonlinear control theory]8_ Comparison of three robust controllers
RK1126平台项目总结
Introduction to nexus and detailed tutorial of Xiaobai using idea to package and upload to nexus3 private server
每日一题——倒置字符串
PCL知识点——体素化网格方法对点云进行下采样
HBuilderX运行到手机或模拟器提示没有找到设备
Vscode + eslint configuration
PMS132B单片机TWS数码管蓝牙充电仓方案开发
Are you holding back on the publicity of the salary system for it posts such as testing, development, operation and maintenance?
Microservice architecture practice: using Jenkins to realize automatic construction
原厂原装 应广单片机PMS134方案开发应用案例
蓝牙技术|物联网的可穿戴设备新工作模式,蓝牙BLE助力新工作模式
SAP commerce Cloud Architecture Overview
em120.gige.h
Microservice architecture practice: Construction of scalable distributed database cluster
[web technology] 1233 seconds understand web component
科班出身,面试小公司都进不去