Mysql Event schedpent: Failed to open table mysql. event, mysqlopentable

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.