Switch mysql library
This commit is contained in:
@@ -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)
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
const mysql = require('mysql');
|
const mysql = require('mysql2');
|
||||||
|
|
||||||
var connection = mysql.createConnection({
|
var connection = mysql.createConnection({
|
||||||
host : 'localhost',
|
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"
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user