[SOLVED] NodeJS: Backup MySQL database


I want to backup a mysql database. Is it possible to do it in node js? If not, what is the best way to do so?


simple way without libs:

var exec = require('child_process').exec;
var child = exec(' mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql');

Answered By – siavolt

Answer Checked By – Candace Johnson (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *