From af585708e7ad292e2f520aadbaa3b99dbaf94b60 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Mon, 5 Sep 2022 22:29:07 +0200 Subject: [PATCH] fix --- db.js | 3 ++- main.js | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db.js b/db.js index c239e6c..5bd6507 100644 --- a/db.js +++ b/db.js @@ -1,5 +1,6 @@ //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}) { diff --git a/main.js b/main.js index 4041051..e955863 100644 --- a/main.js +++ b/main.js @@ -10,8 +10,7 @@ const db_struct = { }, }; -//const host="localhost", port=3306, user="user", password="12345678", database="testDB"; -const host="rpi2", port=3306, user="jusax", password="testserver", database="test"; +const host="localhost", port=3306, user="user", password="12345678", database="testDB"; const db = new wam({host, port, user, password, database})