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

边栏推荐
- 应广PMC131 SOP16 16pin八位单片机
- Taiwan Feiling fm8pb513b MCU provides MCU program development product design
- Android cycle timer implementation, to achieve fixed Android cache cleaning
- 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
- aloam 代码阅读与总结
- HDU - 1114 Piggy Bank (full backpack)
- 深入理解ThreadLocal
- wait_for_gap -- 从主库归档备库恢复归档
- 如何下载微信支付证书(API证书)
- How to download wechat payment certificate (API certificate)
猜你喜欢

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]

Modbus协议通信异常

使用Zadig从0到1搭建持续交付平台
![[how is the network connected] Chapter 4 explores access networks and network operators](/img/50/d16f4dca571a5a5f9b20fada289d45.png)
[how is the network connected] Chapter 4 explores access networks and network operators

How to download wechat payment certificate (API certificate)

Modbus协议通信异常

开发一个禁止删除namespace的控制器

finally详解

win10 kms activator
随机推荐
Problems needing attention in the development and debugging of Yingguang single chip microcomputer
Finally detailed explanation
Keras' deep learning practice -- gender classification based on vgg19 model
应广单片机开发 工规 PMC131 带AD芯片检测电池电压单片机SOP8/14
How to download wechat payment certificate (API certificate)
MySQL --- 数据库的基本操作
Navigateur Chrome pour un accès rapide au stackoverflow
原装应广单片机 MCU芯片PMS152 SOP8封装 单片机开发
Android cycle timer implementation, to achieve fixed Android cache cleaning
开发一个禁止删除namespace的控制器
应广单片机PMS150/PMC150/PMS150C消费类单片机
Aloam code reading and summary
Chapter 15 string localization and message Dictionary (1)
567.字符串中的排列
【網絡是怎樣連接的】第六章 請求到達服務器以及響應給客戶端(完結)
wait_for_gap -- 从主库归档备库恢复归档
Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer
Troubleshooting ideas that can solve 80% of faults
【Golang | gRPC】使用openssl生成证书
嵌入式开发板 ~ 说明