From 9bbc76cdb1d51c1ec1747f81dc458069a335e1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E8=BD=AC=E7=A7=BB?= <870296759@qq.com> Date: Mon, 3 Oct 2022 13:52:09 +0000 Subject: [PATCH] =?UTF-8?q?update=20server/lib/database.js.=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 疯狂转移 <870296759@qq.com> --- server/lib/database.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/lib/database.js b/server/lib/database.js index cac4567..7b7cab7 100644 --- a/server/lib/database.js +++ b/server/lib/database.js @@ -2,11 +2,11 @@ // 连接MySQL var mysql = require('mysql'); var pool = mysql.createPool({ - host: 'localhost', + host: 'rm-bp180946xw41088xb5o.mysql.rds.aliyuncs.com', port: '3306', - user: 'root', - password: 'root', - database: 'comecode.opensrc' + user: 'scratch', + password: 'Zd@202209', + database: 'scratch.lite' }); //防止注入:'SELECT * FROM user WHERE ?', WHERE -- Gitee