Windows Server server-side MySQL database automatic backup

Source: Internet
Author: User
Tags administrator password

1. Grant all SQL permissions to the root account
Grant all privileges on * * to [e-mail protected] "%" identified by ".";
Flush privileges;

2. Create a bat batch file
@echo offset path=%path%;D: \program Files\mysql\mysql Server 5.5\binset Y=%date:~0,4%set m=%date:~5,2%set d=%date:~8,2 %set h=%time:~0,2%set cdate=%y%%m%%d%_%h%mysqldump-h 127.0.0.1-u root--password=*****-e-r--database cmsis > F:\da Ta\cmsis_%cdate%.sqlexit

Where Cmsis is the database to be backed up, files such as Cmsis_20140510_16.sql are generated under F:\data when the batch file is executed

3. Add a Scheduled task

(1) Add a task plan, task plan, System tools, accessories, and programs


(2) Click Next

Click Browse to select the bat file you just created

(3) Set task execution time



Then click Next to enter the administrator password!


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.