MySQL Event scheduler:failed to open Table Mysql.event_mysql

Source: Internet
Author: User

In fact, this error literally means that the mysql.event table cannot be opened, which is caused by permission problems. General MySQL also cannot run.

The MySQL service cannot be started on the local computer. Error 1067: Process terminated unexpectedly.

MySQL installation changes the database path to the problem solving method

When installing MySQL on windows, everything is normal after the installation, but for data security considerations, you want to put the database directory under D:\mysql\data, and then modify the My.ini to Datadir= "C:\Documents and Settings\ All Users\Application Data\mysql\mysql Server 5.5\data "to Datadir=" D:/mysql/data.
The MySQL service cannot be restarted after modification.
To view the error record, you are prompted:
[ERROR] Event scheduler:failed to open Table Mysql.event
After finding the data, the following steps can be resolved:
Right-click the MySQL service (some MySQL55, etc.)--click on "Properties"-"Login" tab-"Select the Local System account" radio button-"Apply".

In general, it is not recommended to use the Local system account to run MySQL with mysq low privilege running issues.

First, make sure your my.ini configuration file is fine.

The following cloud-dwelling community small series gives 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 your local System account and don't run with low privileges, which is definitely not good.



2. Add to the Data Dir security properties The User: "Network Service",
With the all rights.

The meaning is to give the data directory permissions, in general, our permissions are inherited, but if the first to do security will have problems.

In fact, the MySQL data directory to the low rights users with all the permissions can be.

Cloud-dwelling Community small series is because of this reason, before all are configured to do security. So later or gradually do a good job.

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.