const mysql = require('mysql2') const connection = mysql.createConnection({ host : 'db', port: '3306', user : 'root', password : 'rootinha', database : 'dbzin' }); connection.connect((error) => { if (error) { console.error('Error connecting to MySQL database:', error); } else { console.log('Connected to MySQL database!'); } }); // close the MySQL connection // connection.end() console.log("NICE!")