This commit is contained in:
jusax23 2022-09-05 22:29:07 +02:00
parent 9ec1156014
commit af585708e7
2 changed files with 3 additions and 3 deletions

3
db.js
View file

@ -1,5 +1,6 @@
//npm install mysql //npm install mysql
var mysql = await import('mysql'); import mysql from "mysql";
//var mysql = await import('mysql');
const db = function ({host, port, user, password, database}) { const db = function ({host, port, user, password, database}) {

View file

@ -10,8 +10,7 @@ const db_struct = {
}, },
}; };
//const host="localhost", port=3306, user="user", password="12345678", database="testDB"; const host="localhost", port=3306, user="user", password="12345678", database="testDB";
const host="rpi2", port=3306, user="jusax", password="testserver", database="test";
const db = new wam({host, port, user, password, database}) const db = new wam({host, port, user, password, database})