diff --git a/server/core/db.js b/server/core/db.js index 6ae657a8..f1ac88b3 100644 --- a/server/core/db.js +++ b/server/core/db.js @@ -140,6 +140,10 @@ module.exports = { await conn.query(`set application_name = 'Wiki.js'`) done() break + case 'mysql': + await conn.promise().query(`set autocommit = 1`) + done() + break default: done() break