lsc 2 周之前
父节点
当前提交
a4f6ab8c94
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      mysql.js
  2. 2 2
      pbl.js

+ 2 - 2
mysql.js

@@ -10,7 +10,7 @@ us.mysqlconnection = function(host, database) {
         let port = host == '172.16.12.7' ? 3306 : 3306;
         if(host == '123.58.32.152'){
             port = 20330;
-        }else if(host == '183.36.25.93'){
+        }else if(host == '183.36.25.92'){
             port = 20007;
         }
         // let port = host == '123.58.32.152' ? 20330 : 20007;
@@ -20,7 +20,7 @@ us.mysqlconnection = function(host, database) {
             host: host, //数据库地址
             // host: '123.58.32.151', //数据库地址
             user: "root", //用户名
-            password: host == '127.0.0.1' ? "root" : "cocorobo", //密码
+            password: host == '127.0.0.1' ? "root" : "CocoRobo-159", //密码
             database: database, //数据库名称
             // port: 20007 //端口
             port: port, //端口

+ 2 - 2
pbl.js

@@ -6,8 +6,8 @@ const bcrypt = require("bcryptjs");
 const router = express.Router(); // get an instance of the express Router
 const querystring = require("querystring");
 var mysql = require("./mysql");
-// const _mysqlLabor = ["183.36.25.93", "pbl"]; //edu數據庫信息
-// const _mysqluser = ["183.36.25.93", "cocorobouser"]; //用户数据库信息
+// const _mysqlLabor = ["183.36.25.92", "pbl"]; //edu數據庫信息
+// const _mysqluser = ["183.36.25.92", "cocorobouser"]; //用户数据库信息
 // const _getmysqlLabor = ["123.58.32.151", "pbl"]; //edu數據庫信息f
 // const _getmysqluser = ["123.58.32.151", "cocorobouser"]; //edu數據庫信息
 const _mysqlLabor = ["172.16.12.5", "pbl"]; //edu數據庫信息