MySQL does not start: Table mysql.host doesn t exist! Error 1067 occurred, resolved.

Source: Internet
Author: User

The MySQL service does not start, start with a command or start the Times in the service window wrong: Error 1067 occurred

And then looked for a long time their own modified My.ini put all tried, useless

When you open the error log, the last line shows:

[ERROR] Fatal Error:can ' t open and Lock Privilege tables:table ' mysql.user ' doesn ' t exist

And then go and find out what to do.

Is the MySQL database has a problem, specifically, the user table has a problem.

Online solutions are mostly Linux, initialize the database is OK, that is: mysql_install_db--user=mysql

This trick is not available under Windows.

To the data directory, the MySQL folder has not been deleted. Then copy the file from the downloaded mysql.zip.

or Data\mysql directory, User.frm,user cannot be found. Myd,user. Myi three files, that is, the user table was deleted.

Or you can copy the three files from the downloaded mysql.zip.

OK, perfect solution.

Of course, the original user name password all reset.

MySQL does not start: Table mysql.host doesn t exist! Error 1067 occurred, resolved.

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.