当前位置:网站首页>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

边栏推荐
- [how is the network connected] Chapter 4 explores access networks and network operators
- freemarker+poi实现动态生成excel文件及解析excel文件
- 牛客 JS3 分隔符
- How to create a new page for SAP Spartacus storefront
- Rk1126 platform project summary
- 智能水电表能耗监测云平台
- Si446 usage record (I): basic data acquisition
- 义隆EM78P153K DIP14单片机 MCU
- easyAI笔记——深度学习
- 应广单片机开发流程需要注意哪些?
猜你喜欢
![List summation [dummy+ tail interpolation + function processing list reference common pit]](/img/08/30e8ca2376104d648a82dca8a72c42.png)
List summation [dummy+ tail interpolation + function processing list reference common pit]

Alibaba cloud sub account - Permission Policy - full control permission granted to an account and an OSS bucket

【目标跟踪】|SiamFC

应广单片机开发 工规 PMC131 带AD芯片检测电池电压单片机SOP8/14
![[how to connect the network] Chapter 5 explore the server](/img/81/60899d017f5f86a223aa8a11c2e5bf.png)
[how to connect the network] Chapter 5 explore the server

Solution to the problem that the easycvr kernel of intelligent video analysis platform cannot be started as a service

Rk1126 platform project summary

Ssm+ wechat applet to realize property management system

si446使用记录(二):使用WDS3生成头文件

The construction of scalable distributed database cluster and the partition design of oneproxy sub database
随机推荐
easyswoole3.2重启不成功
SAP commerce cloud storefront framework selection: accelerator or Spartacus?
云通信接口更新迭代——SUBMAIL API V4正式上线
Microservice architecture practice: using Jenkins to realize automatic construction
ROS knowledge points -- the difference between ros:: nodehandle N and NH ("~")
JS20 array flattening
PCL知识点——体素化网格方法对点云进行下采样
每日一题——“水仙花数”
泡椒凤爪制作教程
Uniapp H5 page calls wechat payment
ceph 原理
After meeting a full stack developer from Tencent, I saw what it means to be proficient in MySQL tuning
微信小程序 —— 上下浮动的箭头
阿里云子账户 - 权限策略 - 授权给某个账户某个 OSS Bucket 的完全控制权限
【網絡是怎樣連接的】第六章 請求到達服務器以及響應給客戶端(完結)
Introduce the scrollintoview() method attribute in detail
HDU - 1114 Piggy-Bank(完全背包)
[how is the network connected] Chapter 6 requests arrive at the server and respond to the client (end)
List summation [dummy+ tail interpolation + function processing list reference common pit]
Daily question - inverted string