Switch mysql library

This commit is contained in:
2024-07-21 17:25:56 +02:00
parent 088734d935
commit cc92b4653c
4 changed files with 736 additions and 770 deletions

View File

@@ -2,7 +2,7 @@
Install using `npm install` Install using `npm install`
Dev-Enviroment: NodeJS 18 and MySQL Dev-Enviroment: NodeJS 20 and MySQL 8.4
Build with Express.JS framework Build with Express.JS framework
Based on this [Soure](https://www.webslesson.info/2022/04/insert-update-delete-data-from-mysql-in-node-js-using-express-js.html#step3) Based on this [Soure](https://www.webslesson.info/2022/04/insert-update-delete-data-from-mysql-in-node-js-using-express-js.html#step3)

View File

@@ -1,4 +1,4 @@
const mysql = require('mysql'); const mysql = require('mysql2');
var connection = mysql.createConnection({ var connection = mysql.createConnection({
host : 'localhost', host : 'localhost',

1480
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,16 +6,16 @@
"start": "node ./bin/www" "start": "node ./bin/www"
}, },
"dependencies": { "dependencies": {
"@mdi/font": "^7.1.96", "@mdi/font": "latest",
"connect-flash": "^0.1.1", "connect-flash": "latest",
"cookie-parser": "~1.4.4", "cookie-parser": "latest",
"debug": "~2.6.9", "debug": "latest",
"ejs": "~2.6.1", "ejs": "latest",
"express": "~4.16.1", "express": "latest",
"express-session": "^1.17.3", "express-session": "latest",
"http-errors": "~1.6.3", "http-errors": "latest",
"morgan": "~1.9.1", "morgan": "latest",
"mysql": "^2.18.1", "mysql2": "latest",
"table-sort-js": "^1.8.1" "table-sort-js": "latest"
} }
} }