From d4f9f5bcfd26c19def93ab83c4cce2f4b71501fc Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 9 Dec 2024 20:08:18 +0800 Subject: [PATCH] Update sql_mysql.py --- plugins/data_query/sql_mysql.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/data_query/sql_mysql.py b/plugins/data_query/sql_mysql.py index bd53f8bef..5f1560958 100755 --- a/plugins/data_query/sql_mysql.py +++ b/plugins/data_query/sql_mysql.py @@ -80,9 +80,7 @@ class nosqlMySQL(): mysql_pass = self.sqliteDb(sid, 'config').where('id=?', (1,)).getField('mysql_root') result['password'] = mysql_pass - - keys = ["bind_ip", "port"] - + rep = r'port\s*=\s*(.*)' port_re = re.search(rep, mydb_content) if port_re: