Remember the MySQL disaster caused by forced shutdown

Source: Internet
Author: User
Tags mysql version

MySQL version: 5.5

The notebook is dead again, only the screen is alive, it should be the memory disk problem. In short, I opened the MySQL service and forced shutdown, when the computer opened again, the MySQL service failed to start.

First look at the Windows logs, the log prompts some errors, but not specific.

1. Then save the data directory below the main directory (which is the basic information of all the tables), the following Ibdata1 file stores the information, so it needs to be saved.

2. Then reinstall MySQL, here using the MySQL installation software to uninstall and reload, self-installing some information is not completely deleted.

3. Finally copy the data directory back.

4. The database is not the same as before the crash, when only the root user, other users need additional.

Summary: 1. Memory disk software really need to use less, not very stable. 2. Do not arbitrarily force the shutdown, especially when you open MySQL.

Remember the MySQL disaster caused by forced shutdown

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.