Creamos api en node para la conexión a base de datos y cambios que pidió pablo #4

Merged
pablone merged 8 commits from develop into master 2024-01-18 06:13:48 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 160f7d2a5c - Show all commits

View File

@ -12,7 +12,7 @@ async function connect() {
const mysql = require("mysql2/promise");
const connection = await mysql.createConnection("mysql://" + user + ":" + password + "@" + host + ":" + port + "/" + database + "");
console.log("Conectou no MySQL!");
console.log("Connected to MySQL!");
global.connection = connection;
return connection;
}