An unexpected error with MySQL

Source: Internet
Author: User

This morning visit webpage, prompt error, database connection not on, then restart MySQL service, prompt


MySQL Manager or server PID file could not being found!

Starting mysql.manager of Pid-file quit without updating fi

Good depressed, and then look at the error log, there is such a hint:


150814 12:04:09 [ERROR]/usr/local/mysql/bin/mysqld:table './mysql/user ' is marked as crashed and last (automatic?) Repai R failed

150814 12:04:09 [ERROR] Fatal Error:can ' t open and lock Privilege tables:table './mysql/user ' is marked as crashed and L AST (automatic?) repair failed


Can only read the small part, said I this user table as if the repair failed, never encountered this error, so the morning to check the information, tried several unsuccessful, and finally accidentally saw an article:


1 access to the installation path of your database mine is/data/mysql/mysql.

2 run myisamchk-of user. MYI fix my user table appears the following prompt indicates success:

-Recovering (with Keycache) myisam-table ' user. MYI '
Data Records:6


3 Restart MySQL service again, success.

Reference article: http://www.jb51.net/article/33627.htm


This article is from the "Linux" blog, so be sure to keep this source http://825536458.blog.51cto.com/4417836/1684627

An unexpected error with MySQL

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.