mysql数据库定时备份 MySQL在Linux下如何实现定时备份?
MySQL在Linux下如何实现定时备份? 自动备份.sh,内容如下#!/bin/bashmysqldump-P databasename>我的数据.sql2. 将其更改为可执行Chmod X自动
MySQL在Linux下如何实现定时备份?
自动备份.sh
,内容如下#!/bin/bashmysqldump-P databasename>我的数据.sql2. 将其更改为可执行Chmod X自动备份.sh3让系统通过crontab自动运行这个脚本,比如crontab-E00***/Path to/自动备份.sh
第一个零是分钟,第二个零是小时,第三个*是天,第四个*是月,第五个*是周