const mysql = require('mysql2/promise'); const config = require('../config'); module.exports = mysql.createPool({ user: config.db.user, password: config.db.password, host: config.db.host, // 'test-db.verdnatura.es', port: config.db.port, database: config.db.database, insecureAuth: true });