From bf593af423e116a9da9a86ffacd6f6f34ce54244 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 11 Jan 2022 23:47:40 +0100 Subject: [PATCH] [mod] engine mysql_server: make port configurable Cherry piked from https://github.com/searx/searx/commit/82ac634070 Suggested-by: https://github.com/searx/searx/issues/3117 Signed-off-by: Markus Heiser --- searx/engines/mysql_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/engines/mysql_server.py b/searx/engines/mysql_server.py index d949ee0bc..c16093fb0 100644 --- a/searx/engines/mysql_server.py +++ b/searx/engines/mysql_server.py @@ -11,6 +11,7 @@ import mysql.connector # pylint: disable=import-error engine_type = 'offline' auth_plugin = 'caching_sha2_password' host = "127.0.0.1" +port = 3306 database = "" username = "" password = "" @@ -35,6 +36,7 @@ def init(engine_settings): user=username, password=password, host=host, + port=port, auth_plugin=auth_plugin, )