Home  >  Article  >  Database  >  Mysql 事件(event)_MySQL

Mysql 事件(event)_MySQL

WBOY
WBOYOriginal
2016-06-01 13:11:191096browse

Mysql 事件(event)类计划任务,在某时刻 一次性执行 或 周期性执行 一些 SQL 脚本或存储过程,系统的效率更高。

但默认 是关闭状态,要想开启,有两个方法:

 

1. 执行 set global event_scheduler=on;

2.在my.ini配置文件中填写: event_scheduler=on

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn