This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/db/connect.js

12 lines
316 B
JavaScript

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
});