Backup MySQL (script) under Window platform

Source: Internet
Author: User
Tags mysql backup

@echo off

Echo-------------------------

echo MySQL Backup

Echo 2014.11.26

Echo-------------------------


Set Jtkd_d=jtkd_d_%date:~0,4%%date:~5,2%%date:~8,2%.sql

Set Jtkd_accountdb=jtkd_accountdb_%date:~0,4%%date:~5,2%%date:~8,2%.sql

Set Jtkd_static=jtkd_static_%date:~0,4%%date:~5,2%%date:~8,2%.sql

Set Jtkd_statistics=jtkd_statistics_%date:~0,4%%date:~5,2%%date:~8,2%.sql


CD D:\Program files\mysql\mysql Server 5.5\bin


Mysqldump-uroot-proot--databases jtkd--routines--events--triggers >d:\backup\%jtkd_d%


CD \


CD bat


@echo off


REM Pause


This article is from the "SQL Server MySQL" blog, so be sure to keep this source http://dwchaoyue.blog.51cto.com/2826417/1582742

Backup MySQL (script) under Window platform

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.