mirror of
https://gitlab.com/jusax23/wam.git
synced 2024-11-21 22:26:42 +01:00
fix
This commit is contained in:
parent
9ec1156014
commit
af585708e7
2 changed files with 3 additions and 3 deletions
3
db.js
3
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}) {
|
||||
|
|
3
main.js
3
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})
|
||||
|
||||
|
|
Loading…
Reference in a new issue