lsc 1 year ago
parent
commit
00ffa607fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mysql.js

+ 1 - 1
mysql.js

@@ -7,7 +7,7 @@ var us = {
 //连接数据库
 //连接数据库
 us.mysqlconnection = function(host, database) {
 us.mysqlconnection = function(host, database) {
     if (!us.sqle[host] || !us.sqle[host][database]) { //配置数据库连接 
     if (!us.sqle[host] || !us.sqle[host][database]) { //配置数据库连接 
-        let port = host == '172.16.12.7' ? 20330 : 3306;
+        let port = host == '172.16.12.7' ? 3306 : 3306;
         // let port = host == '123.58.32.152' ? 20330 : 20007;
         // let port = host == '123.58.32.152' ? 20330 : 20007;
         us.sqle[host] = us.sqle[host] || {};
         us.sqle[host] = us.sqle[host] || {};
         us.sqle[host][database] = us.mysql.createPool({
         us.sqle[host][database] = us.mysql.createPool({