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

边栏推荐
- Turn off the xshell connection server and the running jar package will stop automatically
- 读写 XML/JSON/INI 和 UBJSON 等格式的数据文件的统一接口
- JDBC
- wps插入图片后使图片完整显示
- MB10M-ASEMI整流桥MB10M
- android之循环定时器实现,实现定Android时缓存清理
- 【网络是怎么连接的】第四章 探索接入网和网络运营商
- Making tutorial of chicken feet with pickled peppers
- Navigateur Chrome pour un accès rapide au stackoverflow
- 【历史上的今天】7 月 2 日:BitTorrent 问世;商业系统 Linspire 被收购;索尼部署 PlayStation Now
猜你喜欢

Experience Alibaba cloud character recognition OCR

能解决 80% 故障的排查思路

chrome瀏覽器快速訪問stackoverflow

蓝牙技术|物联网的可穿戴设备新工作模式,蓝牙BLE助力新工作模式

515. 在每个树行中找最大值

Use of nexttile function in MATLAB

【Golang | gRPC】使用openssl生成证书

Virtual lab basic experiment tutorial -7 Polarization (2)

Ssm+ wechat applet to realize property management system

Alibaba cloud sub account - Permission Policy - full control permission granted to an account and an OSS bucket
随机推荐
chrome瀏覽器快速訪問stackoverflow
android之循环定时器实现,实现定Android时缓存清理
售价仅40元,树莓派Pico开发板加入WiFi模块,刚上市就脱销
【网络是怎么连接的】第四章 探索接入网和网络运营商
【Golang | gRPC】使用openssl生成证书
详解Kubernetes网络模型
HDU - 1114 Piggy Bank (full backpack)
Platform management background and merchant menu resource management: merchant role management design
【历史上的今天】7 月 2 日:BitTorrent 问世;商业系统 Linspire 被收购;索尼部署 PlayStation Now
What is the experience of maintaining Wanxing open source vector database
Virtual lab basic experiment tutorial -7 Polarization (2)
辉芒微IO单片机FT60F010A-URT
Easyai notes - deep learning
Yingguang single chip microcomputer development specification pmc131 with AD chip to detect battery voltage single chip microcomputer sop8/14
[how is the network connected] Chapter 6 requests arrive at the server and respond to the client (end)
Viewing technological changes through Huawei Corps (VI): smart highway
Are you holding back on the publicity of the salary system for it posts such as testing, development, operation and maintenance?
[target tracking] |siamfc
Wasserstein Slim GAIN with Clipping Penalty(WSGAIN-CP)介绍及代码实现——基于生成对抗网络的缺失数据填补
【Zuul】com.netflix.zuul.exception.ZuulException: Hystrix Readed time out