This commit is contained in:
2026-03-25 16:10:17 -04:00
parent f3667266a9
commit 942da76704
933 changed files with 149047 additions and 2 deletions
@@ -0,0 +1,17 @@
import { createConnection } from "mysql2";
const connection = createConnection({
host: "localhost",
user: "root",
database: "customers_db",
});
connection.connect((err) => {
if (err) {
console.error("Error connecting to the database:", err);
} else {
console.log("Connected to the MySQL database!");
}
});
export default connection;