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

边栏推荐
- 详解Kubernetes网络模型
- [how is the network connected] Chapter 6 requests arrive at the server and respond to the client (end)
- 把xshell连接服务器关掉,运行的jar包就自动停止的解决方案
- MySQL --- 数据库的基本操作
- JDBC
- 王者荣耀商城异地多活架构设计
- Bluetooth technology | new working mode of wearable devices of the Internet of things, and Bluetooth ble helps the new working mode
- Pms150c Yingguang MCU development case
- PMS150C应广单片机开发案例
- Modbus protocol communication exception
猜你喜欢
![[comment le réseau se connecte] chapitre 6: demande d'accès au serveur et réponse au client (terminé)](/img/ef/1ac272dbd0e5c4d08a8f01f61d334d.png)
[comment le réseau se connecte] chapitre 6: demande d'accès au serveur et réponse au client (terminé)

深入理解ThreadLocal

freemarker+poi实现动态生成excel文件及解析excel文件

Edgenext hit a mixed punch: a lightweight architecture integrating CNN and transformer

My creation anniversary
![[target tracking] |siamfc](/img/40/3419761d2eb7f1193b699cdd431761.png)
[target tracking] |siamfc

Laravel文档阅读笔记-Custom Authentication Login And Registration Using Laravel 8

Ssm+ wechat applet to realize property management system

每日一题——小乐乐改数字

RK1126平台项目总结
随机推荐
win10 kms activator
From a professional background, I can't get into a small company for interview
pytorch支持32位吗?
Platform management background and business menu resource management: business permissions and menu resource management design
Daily question - inverted string
体验一下阿里云文字识别OCR
Many scenic spots are temporarily closed due to the typhoon. The provincial culture and tourism department reminds you to pay attention to safety!
应广单片机开发案例
easyAI笔记——深度学习
567. Arrangement in string
Pms150c Yingguang MCU development case
Longest non repeating subarray
MySQL进阶-事务及索引
Solution to the problem that the easycvr kernel of intelligent video analysis platform cannot be started as a service
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
Redisson high performance redis distributed lock source code analysis
Keras' deep learning practice -- gender classification based on vgg19 model
Linux中,mysql设置job任务自动启动
PMS150C应广单片机开发案例
台湾飞凌FM8PB513B单片机提供单片机方案开发 产品设计