打开MySQL Server时如何启用事件计划程序 [英] How to enable Event Scheduler when I open MySQL Server

查看:107
本文介绍了打开MySQL Server时如何启用事件计划程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对事件计划程序有疑问.当我重新启动MySQL Server时,它会自动禁用.重新启动MySQL Server时如何自动启用事件计划程序.

I have a problem with Event Scheduler. It is disabled automatically when I restart the MySQL Server. How can I enable the event scheduler automatically when I restart the MySQL Server.

经过长时间搜索后,我有了一个红色的解决方案,即使用以下命令在MySQL的my.ini文件中启用事件计划程序.

I have red one solution after a long search, i.e enable the Event Scheduler in my.ini file in MySQL with the following command.

event_scheduler=on

如果使用上述命令在my.ini文件中进行更改,则在显示my.ini文件时会显示错误,例如访问被拒绝".

If I make changes in my.ini file with the above command it displays an error while saves the my.ini file like 'access denied'.

我的上述流程是否有问题?如果有,这个问题有什么解决办法吗?

Is there any problem in my above process? If there is, any solution for this problem?

谢谢.

推荐答案

这是Windows中而不是mysql中的特权问题,只需使用具有管理员特权的记事本打开文件即可.右键单击记事本,然后选择以管理员身份运行",然后打开my.ini文件并进行编辑.

It is a problem with your privileges in windows and not with mysql, just open the file with notepad which runs with administrator privileges. Right click notepad and chose "run as administrator", then open your my.ini file and edit it.

这篇关于打开MySQL Server时如何启用事件计划程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆