// dbConfig.js const mysql = require('mysql'); const connection = mysql.createConnection({ host: process.env.CLOUDRON_MYSQL_HOST, user: process.env.CLOUDRON_MYSQL_USERNAME, port: process.env.CLOUDRON_MYSQL_PORT, password: process.env.CLOUDRON_MYSQL_PASSWORD, database: process.env.CLOUDRON_MYSQL_DATABASE, }); connection.connect((err) => { if (err) throw err; console.log('Connected to the database'); }); module.exports = connection;