Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  14] [ 6]  / answers: 1 / hits: 21612  / 9 Years ago, thu, june 18, 2015, 12:00:00

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?


More From » mysql

 Answers
11

simple way without libs:



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

[#66146] Wednesday, June 17, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kiyam

Total Points: 448
Total Questions: 96
Total Answers: 92

Location: Philippines
Member since Sat, Jul 11, 2020
4 Years ago
;