For details about the event types in MySQL binlog, mysqlbinlog
All operations recorded by MySQL binlog actually have corresponding event types. For example, DML operations in STATEMENT format correspond to QUERY_EVENT types, while DML operations in
All operations recorded by MySQL Binlog actually have corresponding event types, such as the DML operation in the statement format corresponds to the query_event type, and the DML operation in row format corresponds to the rows_event type.
First,
The event scheduler in MySQL can periodically increase, delete, and execute operations on the database, which is equivalent to temporary triggers in the database, as with the execution plan tasks in the Linux system, which can greatly reduce the
Q: Suppose that there is a requirement that the system invoke a begin end at a certain point, and execute the begin end in 10 minutes. There is also a requirement for how often each time a recurring begin end is executed. So what should we do at
The event scheduler in MySQL can periodically increase, delete, and execute operations on the database, which is equivalent to temporary triggers in the database, as with the execution plan tasks in the Linux system, which can greatly reduce the
First, the basic conceptThe mysql5.1 version begins with the introduction of the event concept. Event is not only a "time trigger", unlike the events triggered by the triggers, the event is similar to a Linux crontab scheduled task for time
Usage of event in mysql
I. Basic conceptsThe event concept was introduced in MySQL. The event is a time trigger, which is different from triggers event triggering. The event is similar to a linux crontab scheduled task for time triggering. It can be
It is often necessary to have some timed tasks performed on MySQL tables, such as statistics, migrations, deleting unwanted data, and so on. The previous practice was to use Linux cron to run the script regularly, but found that such additional
If you are evaluating the pressure of a MySQL database, you can use Sysbench to test
The concrete operation out, installs the Sysbench tool first, installs the operation as follows:
Installation Environment
CentOS Release 5.4 (Final)MySQL 5.1.40
I. Basic ConceptsThe event concept was introduced in MySQL. The event is a time trigger, which is different from triggers event triggering. The event is similar to a linux crontab scheduled task for time triggering. It can be used independently or
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.