Use batch processing to back up and upload mysql databases _ MySQL

Source: Internet
Author: User
Using batch processing for mysql database backup and uploading bitsCN.com there is a windows Server running some mysql applications. now we need to back up mysql data every day, upload the file to the specified storage server through ftp.

In linux, shell scripts are easy to handle. in windows, you are used to clicking the mouse and where the script comes from. at the moment, you really don't know how to get it. baidu, google knows it can be implemented through batch processing or vbs script.

Batch processing is relatively simple. after all, common dos commands are still known.

Solution:
Use batch files for backup and Upload
Add batch files to scheduled tasks to execute scripts on a daily basis

The complete batch file is named dbbk. bat below.
@ Echo off
: This batch is to backup the db files on windows to linux server
: Created by yahoon
: 2008.4.9

: Backup the mysql db
Mysqldump-uroot

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.