[Note] Event Scheduler: Killing the scheduler thread, thread id 1

MySQL SLAVE 启动后有如下提示:
[Note] Event Scheduler: Killing the scheduler thread, thrtestd id 1
[Note] Event Scheduler: Waiting for the scheduler thread to reply
[Note] Event Scheduler: Stopped

 

mysql> select version();
+-------------------------------------------+
| version()                                 |
+-------------------------------------------+
| 5.6.21-enterprise-commercial-advanced-log |
+-------------------------------------------+
1 row in set (0.00 sec)

 

 mysql中的event已经被关闭

mysql>  show variables where Variable_name='event_scheduler';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| event_scheduler | OFF   |
+-----------------+-------+
1 row in set (0.00 sec)


mysql> SELECT EVENT_SCHEMA, EVENT_NAME
    ->     FROM INFORMATION_SCHEMA.EVENTS
    ->     WHERE STATUS = 'SLAVESIDE_DISABLED';
Empty set (0.00 sec)

 

将event的状态改为DISABLE ON SLAVE 

mysql> alter event test.orderReplyQueue DISABLE ON SLAVE  ;


mysql> SELECT EVENT_SCHEMA, EVENT_NAME ,status FROM INFORMATION_SCHEMA.EVENTS   WHERE  EVENT_NAME='orderReplyQueue';
+--------------+-----------------+--------------------+
| EVENT_SCHEMA | EVENT_NAME      | status             |
+--------------+-----------------+--------------------+
| eportal      | orderReplyQueue | SLAVESIDE_DISABLED |
+--------------+-----------------+--------------------+
1 row in set (0.00 sec)

 

重启后,提示消失。

If you're encountering the error message "Event Scheduler: Unable to schedule event" in MySQL, there could be a few possible reasons for this issue. Here are some troubleshooting steps you can try: 1. Check if the event scheduler is enabled: Execute the following query to verify if the event scheduler is enabled: ```sql SHOW VARIABLES LIKE 'event_scheduler'; ``` If the value is set to "OFF", you can enable it by setting the `event_scheduler` variable to "ON" in your MySQL configuration file (`my.cnf` or `my.ini`). Alternatively, you can enable it dynamically by executing the following query: ```sql SET GLOBAL event_scheduler = ON; ``` 2. Verify the syntax and permissions: Ensure that the syntax of your event creation statement is correct and that you have the necessary privileges to create and schedule events. Make sure you are using a user account with the `EVENT` privilege. 3. Check event-related variables: Verify if the `event_scheduler` variable is set to "ON" and that the global `max_allowed_packet` variable has a sufficient value to accommodate your event. 4. Investigate other errors: If there are any other error messages or warnings displayed when creating or scheduling the event, carefully review them for any additional clues. 5. Restart MySQL service: In some cases, restarting the MySQL service can resolve issues related to the event scheduler. If none of these steps resolve your issue, please provide more specific details about your event creation statement and any other relevant error messages that you're encountering.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值