0
Gemäß der Definition in mysqlSQL Logging excecuted Abfragen in Versprechen-mysql
var post = {id: 1, title: 'Hello MySQL'};
var query = connection.query('INSERT INTO posts SET ?', post, function(err, result) {
// Neat!
});
console.log(query.sql); // INSERT INTO posts SET `id` = 1, `title` = 'Hello MySQL'
Wir können die excecuted Abfragen in log Bitte beachten Sie vorschlagen, wie exceuted Abfragen in Versprechen-mysql
Dank log
Mögliches Duplikat von [Wie aktiviert man MySQL Query Log?] (Http://stackoverflow.com/questions/6479107/how-to-enable-mysql-query-log) – e4c5