Windows Scheduled Tasks automatic backup MySQL database method

Source: Internet
Author: User

First we wrote a a.bat processing file, the code is as follows

The code is as follows Copy Code

net stop MySQL

xcopy D:phpstudymysqldataabc*.* d:up%date:~0,10%/y

net start MySQL

NOTE: ABC is the name of your database, up is the name you want to back up to the specified directory, then date reference is your build directory date, such as up/2013-03-06.

Now we have written the batch file and started to plan the task.

1, in You: Windows "start-> program-> attachment-> System Tool" found it, open the Scheduled Tasks window


2, find your A.bat file path.


3, the following can choose the execution cycle, here we choose every day.


4, and then enter a specific point of time, can be accurate to the minute, there will be an input computer login password, we try to input, otherwise it will not be a successful backup Oh, I did not enter the password is not backed up.


5, the final finish on Ko.

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.