Hello I am using gruntfile to create dump of sql file and want to execute that same file in some another server.
Code to create dump is working fine , but I am unable to execute that dump. Please help me.. I am stuck on it from yesterday.
var grunt=require('grunt');
module.exports = function(grunt) {
console.log("grunt called");
grunt.initConfig({
// Load database config from external JSON (optional)
//db_config: grunt.file.readJSON('config/db.json'),
db_dump: {
options: {
// common options should be defined here
},
// "Local" target
"local": {
"options": {
"title": "Local DB",
"database": "test",
"user": "user",
"pass": "pass",
"host": "host1",
"backup_to": "local.sql"
}
}
},
mysqlrunfile: {
options: {
connection: {
"database": "test",
"user": "user",
"pass": "pass",
"host": "host2",
multipleStatements: true
},
yourtarget1: {
src: ['/local.sql']
}
}
}
});
require('load-grunt-tasks')(grunt);
};