Automatic MySQL backup for Windows Shutdown

Source: Internet
Author: User
Tags mysql backup
Steps for automatic MySQL backup in Windows: 1. Stop the MYSQL service. 2. Copy the pm project data file to the current date folder under "D: MySQL_BAKpm. 3. Call winrar to compress the copy folder. 4. Delete the copy folder and retain only the compressed files. 5. Start the MYSQL service. @ Echooffnetstopmysqlxcopy

Steps for automatic MySQL backup in Windows: 1. Stop the MYSQL service. 2. Copy the pm project data file to the current date folder under "D: \ MySQL_BAK \ pm. 3. Call winrar to compress the copy folder. 4. Delete the copy folder and retain only the compressed files. 5. Start the MYSQL service. @ Echo offnet stop mysqlxcopy

Automatic MySQL backup in Windows
Main steps:
1. Stop the MYSQL service.
2. Copy the pm project data file to the current date folder under "D: \ MySQL_BAK \ pm.
3. Call winrar to compress the copy folder.
4. Delete the copy folder and retain only the compressed files.
5. Start the MYSQL service.

@ Echo offnet stop mysqlxcopy "D: \ MySQL Server 5.1 \ data \ pm \ *. *" D: \ MySQL_BAK \ pm \ % date :~ 0, 10% \ "/y" D: \ Program Files \ WinRAR \ WinRAR.exe "a-k-r-s" D: \ MySQL_BAK \ pm \ % date :~ 0, 102.16.rar "" D: \ MySQL_BAK \ pm \ % date :~ 0, 10% "rd" D: \ MySQL_BAK \ pm \ % date :~ 0, 10% \ "/S/Qnet start mysql

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.