mysql导入报错【The MySQL server is running with the --event-scheduler=DISABLED】

一、问题:

  在进行mysql操作导入库的时候,报出了【The MySQL server is running with the --event-scheduler=DISABLED】

  查看后台日志是事件没有开启

二、解决:

  找到mysql的库配置文件【my.ini】

  (1)skip-grant-tables 选项注释掉

  (2)event_scheduler=ON 添加该选项

三、总结:

  在从服务器上备份库,本地或者其它地方导入的时候会报出许多莫名的问题

  一般报错后,会在数据库的日志文件中打印错误的日志,只需要认真查看日志报错原因,即可针对性的解决,不用慌!

  参考文章:【https://blog.csdn.net/magius/article/details/54341727

原文地址:https://www.cnblogs.com/hackxiyu/p/8915952.html