Mysql Event schedpent: Failed to open table mysql. event, mysqlopentable
In fact, this error literally means you cannot open the mysql. event table, which is caused by permission issues. Mysql cannot run normally.
The MySQL service cannot be started on the local computer. Error 1067: Unexpected Process Termination.
How to solve the problem of changing the database path during mysql Installation
When installing MySQL on windows, everything works normally after the installation, but for data security considerations, I want to put the database directory under D: \ mysql \ data. modify the ini and change datadir = "C: \ Documents and Settings \ All Users \ Application Data \ MySQL Server 5.5 \ data" to datadir = "D: /mysql/data ".
After modification, the mysql service cannot be restarted.
An error message is displayed in the error log:
[ERROR] Event schedled: Failed to open table mysql. event
To solve the problem, follow these steps:
Right-click mysql Service (some are MySQL55 and so on), click "properties", click "Logon", select "Local SYSTEM account", and click "application ".
Generally, mysql is not recommended to run with a local system account due to low-Permission mysq operation.
Make sure that your my. ini configuration file is correct.
The following section describes two methods:
Now we have at least 2 choices:
1. change the service user to: "local system" (as david trillo did)
Or
Run mysql with a local system account. Do not run mysql with low permissions. This is definitely not good.
2. add to the data dir security properties the user: "network service ",
With all rights.
This means to grant data directory permissions. In general, our permissions are inherited, but if we do this first, there will be problems.
In fact, you can add all permissions to the mysql data DIRECTORY for low-Permission users.
This is the reason why Alibaba Cloud helps customers make security work only after everything is configured. So we will continue to do well in the future.