Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 5, 2022 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/588e98f398faf92e64ae1d1609e98c7d to your computer and use it in GitHub Desktop.
Save parzibyte/588e98f398faf92e64ae1d1609e98c7d to your computer and use it in GitHub Desktop.
const mysql = require("mysql");
// Coloca aquí tus credenciales
module.exports = mysql.createPool({
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASSWORD,
database: process.env.MYSQL_DATABASE,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment