jidechao 1 month ago
parent
commit
88d8a45cbb
2 changed files with 3 additions and 3 deletions
  1. 1 1
      model/mysql.js
  2. 2 2
      routes/router.js

+ 1 - 1
model/mysql.js

@@ -15,7 +15,7 @@ us.mysqlconnection = function (host, database) {
             user: "root", //用户名
             password: "cocorobo", //密码
             database: database, //数据库名称
-            port: 20007 //端口 20007
+            port: 3306 //端口 20007
         }); //连接超时和错误从连
     }
     //connectionLimit: 1000, 

+ 2 - 2
routes/router.js

@@ -1,9 +1,9 @@
 var express = require('express');
 var router = express.Router();
 var mysql = require('../model/mysql');
-// const _mysqluser = ["172.16.12.5", "registration"]; //用戶數據庫信息
+const _mysqluser = ["172.16.12.5", "registration"]; //用戶數據庫信息
 
-const _mysqluser = ["183.36.25.93", "registration"]; //本地测试用戶數據庫信息
+// const _mysqluser = ["183.36.25.93", "registration"]; //本地测试用戶數據庫信息
 const crypto = require('crypto');
 const XLSX = require('xlsx');