Also Read : How to Update MySQL Collation for all tables in the schema
You can use the MySQL Scheduler to even run long running queries directly from the workbench. As it runs in the background, your workbench will not be blocked till the query completes its execution.
MySql Scheduler Examples
Below are few examples on how you can use the MySQL Scheduler. You can execute these commands from your MySQL workbench/Editor.
1. In this example, we are scheduling the execution of an Insert statement at a particular time.
2. In this example, we are executing a stored procedure instantly. We can use this for triggering any long running queries from the workbench.
3. In this example, the stored procedure gets executed once, exactly one day after the event is created.
You can create, modify and drop the Scheduled events. After an event is created, we can modify the event by using ‘ALTER EVENT’ statement. When the event is no longer required, it can be dropped by using the ‘DROP EVENT’ statement.
Also Read: JaCoCo Code Coverage in Springboot Applications : A Comprehensive Guide