backup mysql database or recovery mysql
npm install grunt-mysql-backup
connect mysql options
log in mysql username. default is root
log in mysql password. default is ''
the host of mysql. default is localhost
the port of mysql. default is 3306
the database name that need be backup or recover. default is undefined
plugin will do backup task that task name begin with backup
.
for example:
backup:{...}
backup-test: {...}
The directory that backup sql file will be save. default is backup
for example:
backup:{
dir: "mysql-backup-dir"
}
plugin will do recover task that task name begin with recovery
. for example:
recovery:{...}
recovery-test: {...}
the file path of sql. default is the file in backup
directory. chooss the sql file by lexicographic order
v0.0.2
- fixed a bug about import sql to database. the bug just support mysql version 5.6 and up.