yuanyiming 1 vuosi sitten
vanhempi
commit
2fe95e350d
2 muutettua tiedostoa jossa 8 lisäystä ja 4 poistoa
  1. 5 2
      mysql.js
  2. 3 2
      ssti.js

+ 5 - 2
mysql.js

@@ -11,10 +11,13 @@ us.mysqlconnection = function(host, database) {
         us.sqle[host][database] = us.mysql.createPool({
             connectionLimit: 0,
             host: host, //数据库地址
-            user: "root", //用户名
-            password: "222333888", //密码
+            user: "ssti", //用户名     袁一鸣数据库
+            // user: "root", //用户名    
+
+            password: "222333888", //密码  袁一鸣数据库
             // password: "usestudio-1", //密码
             // password: "662675", //密码
+
             database: database, //数据库名称
             // port: 20007 //端口
         }); //连接超时和错误从连

+ 3 - 2
ssti.js

@@ -5,10 +5,11 @@ var bcrypt = require('bcryptjs');
 var router = express.Router(); // get an instance of the express Router
 const querystring = require('querystring');
 var mysql = require('./mysql');
-const _mysqlLabor = ["10.3.16.226", "ssti_cm"]; //本地双创數據庫信息
-// const _mysqlLabor = ["127.0.0.1", "ssti_cm"]; //本地双创數據庫信息
+// const _mysqlLabor = ["10.3.16.226", "ssti_cm"]; //本地双创數據庫信息
+// const _mysqlLabor = ["127.0.0.1", "ssti_cm"]; //本地双创數據庫信息 
 // const _mysqlLabor = ["172.16.12.5", "pbl"]; //双创數據庫信
 // const _mysqlLabor = ["10.16.30.130", "ssti_cm"]; //真实双创數據庫信息
+const _mysqlLabor = ["43.139.158.220", "ssti_cm"]; //  袁一鸣服务器数据库
 
 var crypto = require('crypto');