[bug] Cannot proceed because system tables used by Event Scheduler were found damaged at server start

时间:2023-12-29 17:58:20

本地:mac 10.12.3  mysql 5.6

远程:linux 7.3    mysql 5.7.18.  (远程数据库yum安装,又5.6升级到5.7)

步骤:从本地数据库导出数据到远程数据库

现象:表,存储过程都可以同步过去,

当执行:show events ;

出现

Cannot proceed because system tables used by Event Scheduler were found damaged at server start

原因:5.6升级到5.7的时候,数据库配置表的结构发生了一些变化(事件相关)

解决方法:

1.退出mysql,进入shell环境

2.mysql_upgrade -uaccount -ppassword. (升级表结构)

3.systemctl restart mysqld (重启mysqld服务器)