root 17 hours ago
parent
commit
a088fa6d4e
2 changed files with 5 additions and 3 deletions
  1. 1 1
      model/mysql.js
  2. 4 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 //端口
+            port: 3306 //端口
         }); //连接超时和错误从连
     }
     //connectionLimit: 1000, 

+ 4 - 2
routes/router.js

@@ -1,7 +1,9 @@
 var express = require('express');
 var router = express.Router();
 var mysql = require('../model/mysql');
-const _mysqluser = ["183.36.25.93", "registration"]; //用戶數據庫信息
+const _mysqluser = ["172.16.12.5", "registration"]; //用戶數據庫信息
+
+//const _mysqluser = ["183.36.25.93", "registration"]; //用戶數據庫信息
 const crypto = require('crypto');
 
 router.route('/user').post(async function (req, res) {
@@ -64,4 +66,4 @@ router.route('/update').post(async function (req, res) {
 
 
 
-module.exports = router;
+module.exports = router;