Restore mysql database after reinstalling the operating system _ MySQL

Source: Internet
Author: User
After the operating system is reinstalled, the mysql database recovers bitsCN.com. the carnumber database is used as an example:
1. back up the following files
Data/ib_logfile0
Data/ib_logfile1
2. back up the following folders (including all files)
Data/carnumber
3. delete the carnumber folder
4. Register the service again
Mysqld-nt-install
5. start the service
Net start mysql
6. change the password
Mysqladmin-uroot-pqazxsw password qazxsw
7. connect to mysql
Mysql-uroot-p
8. create a database
Create database carnumber
9. stop the service
Net stop mysql
10. Copy the following file to the data folder.
Ib_logfile0
Ib_logfile1
11. Copy the following folder (including all files) to the data folder.
Carnumber
12. start the service
Net start mysql

End.

BitsCN.com, column of xiaobin_HLJ80

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.