From 82ac634070440d74381bf1b2dfecce05729e4d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Tue, 11 Jan 2022 22:49:53 +0100 Subject: [PATCH] make port configurable in MySQL engine Closes #3117 --- 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 70c7e26e..ce367594 100644 --- a/searx/engines/mysql_server.py +++ b/searx/engines/mysql_server.py @@ -13,6 +13,7 @@ import mysql.connector engine_type = 'offline' auth_plugin = 'caching_sha2_password' host = "127.0.0.1" +port = 3306 database = "" username = "" password = "" @@ -36,6 +37,7 @@ def init(engine_settings): user=username, password=password, host=host, + port=port, auth_plugin=auth_plugin, )