标签:mysql
#/bin/bash PATH=$PATH:/usr/local/mysql/bin BACKDIR=/mysqlbak ROOTPASS=‘123456’ if [ ! $BACKDIR ] then mkdir -p $BACKDIR fi mysqldump -u root -p $ROOTPASS -A > $BACKDIR/db.sql
mysql备份脚本
原文地址:http://9272317.blog.51cto.com/9262317/1825868