Switch mysql library
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
Install using `npm install`
|
||||
Dev-Enviroment: NodeJS 18 and MySQL
|
||||
Dev-Enviroment: NodeJS 20 and MySQL 8.4
|
||||
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)
|
||||
@@ -1,4 +1,4 @@
|
||||
const mysql = require('mysql');
|
||||
const mysql = require('mysql2');
|
||||
|
||||
var connection = mysql.createConnection({
|
||||
host : 'localhost',
|
||||
|
||||
1482
package-lock.json
generated
1482
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
22
package.json
22
package.json
@@ -6,16 +6,16 @@
|
||||
"start": "node ./bin/www"
|
||||
},
|
||||
"dependencies": {
|
||||
"@mdi/font": "^7.1.96",
|
||||
"connect-flash": "^0.1.1",
|
||||
"cookie-parser": "~1.4.4",
|
||||
"debug": "~2.6.9",
|
||||
"ejs": "~2.6.1",
|
||||
"express": "~4.16.1",
|
||||
"express-session": "^1.17.3",
|
||||
"http-errors": "~1.6.3",
|
||||
"morgan": "~1.9.1",
|
||||
"mysql": "^2.18.1",
|
||||
"table-sort-js": "^1.8.1"
|
||||
"@mdi/font": "latest",
|
||||
"connect-flash": "latest",
|
||||
"cookie-parser": "latest",
|
||||
"debug": "latest",
|
||||
"ejs": "latest",
|
||||
"express": "latest",
|
||||
"express-session": "latest",
|
||||
"http-errors": "latest",
|
||||
"morgan": "latest",
|
||||
"mysql2": "latest",
|
||||
"table-sort-js": "latest"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user