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})