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)