【发布时间】:2018-11-03 06:17:02
【问题描述】:
Using mysqldump npm module.While import the backfile generated using this npm.Get this error.
var mysqlDump = require('mysqldump');
mysqlDump({
host: 'localhost',
user: 'root',
password: '',
database: 'test',
tables:[], // only these tables
dest:'./data.sql' // destination file
},function(err){
// create data.sql file;
})
错误:
"11:28:40 恢复 C:\Users\xxxx\Documents\dumps\xx24052018.sql 运行:mysql.exe --defaults-file="c:\users\xxx\appdata\local\temp\tmptdzvot.cnf" --protocol=tcp --host=localhost --user=root --port=3306 - -default-character-set=utf8 --cmets
Operation failed with exitcode 1 11:28:41 Import of C:\Users\xxxx\Documents\dumps\xxxx24052018.sql has finished with 1 errors"
【问题讨论】: