当前位置:网站首页>In Linux, MySQL sets the job task to start automatically
In Linux, MySQL sets the job task to start automatically
2022-07-02 17:55:00 【Liang Meng】
1. Connect to mysql service
mysql -u root -p

2. Find the database you need to operate
show databases;

3. Query the data in the current database job
show events;

4. Check job Whether to start
show global variables like '%event_scheduler%';

OFF Delegate did not start , newly build job The default is OFF
5. Turn on job
set global event_scheduler = on;

6. Query again job state , Has become a ON

7. Set up mysql After restart ,job Can start automatically
edit /etc/my.cnf file , stay [mysqld] Add below event_scheduler=1

边栏推荐
- 每日一题——倒置字符串
- Linux中,mysql设置job任务自动启动
- Larvel document reading notes custom authentication login and registration using larvel 8
- [comment le réseau se connecte] chapitre 6: demande d'accès au serveur et réponse au client (terminé)
- freemarker+poi实现动态生成excel文件及解析excel文件
- Two pieces of nature a day! Duan Fengfeng, an alumnus of the University of science and technology of China, was the third Chinese winner of the belby medal
- Modbus protocol communication exception
- 应广单片机开发 工规 PMC131 带AD芯片检测电池电压单片机SOP8/14
- Virtual lab basic experiment tutorial -7 Polarization (1)
- This "architect growth note" made 300 people successfully change jobs and enter the big factory, with an annual salary of 50W
猜你喜欢

Develop a controller that prohibits deleting namespaces

EdgeNeXt打出了一套混合拳:集CNN与Transformer于一体的轻量级架构

win10 kms activator

每日一题——倒置字符串

台湾飞凌FM8PB513B单片机提供单片机方案开发 产品设计

【Zuul】com.netflix.zuul.exception.ZuulException: Hystrix Readed time out

科班出身,面试小公司都进不去
![[nonlinear control theory]8_ Comparison of three robust controllers](/img/a8/03ed363659a0a067c2f1934457c106.png)
[nonlinear control theory]8_ Comparison of three robust controllers

Redisson 高性能 Redis 分布式锁源码分析

阿里云子账户 - 权限策略 - 授权给某个账户某个 OSS Bucket 的完全控制权限
随机推荐
2 juillet: BitTorrent est sorti; L'acquisition du système commercial linspire; Sony Deployment PlayStation now
原装应广单片机 MCU芯片PMS152 SOP8封装 单片机开发
台湾飞凌FM8PB513B单片机提供单片机方案开发 产品设计
Modbus协议通信异常
ASEMI整流桥UMB10F参数,UMB10F规格,UMB10F封装
应广单片机003烧录器自定义封装使用技巧
POJ - 1458 common subsequence (longest common subsequence)
[how is the network connected] Chapter 4 explores access networks and network operators
Deep understanding of ThreadLocal
Yingguang pmc131 SOP16 16pin eight bit MCU
Larvel document reading notes custom authentication login and registration using larvel 8
Wechat applet - arrows floating up and down
Daily question - xiaolele changes the number
Finally detailed explanation
The price is only 40 yuan. Pico development board of raspberry pie is added with WiFi module, and it is out of stock as soon as it comes into the market
Pms150c Yingguang MCU development case
977.有序数组的平方
详解Kubernetes网络模型
finally详解
Modbus protocol communication exception