mirror of
https://github.com/searxng/searxng
synced 2024-11-05 06:01:05 +00:00
[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 <markus.heiser@darmarit.de>
This commit is contained in:
parent
977e9a4330
commit
bf593af423
@ -11,6 +11,7 @@ import mysql.connector # pylint: disable=import-error
|
|||||||
engine_type = 'offline'
|
engine_type = 'offline'
|
||||||
auth_plugin = 'caching_sha2_password'
|
auth_plugin = 'caching_sha2_password'
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
|
port = 3306
|
||||||
database = ""
|
database = ""
|
||||||
username = ""
|
username = ""
|
||||||
password = ""
|
password = ""
|
||||||
@ -35,6 +36,7 @@ def init(engine_settings):
|
|||||||
user=username,
|
user=username,
|
||||||
password=password,
|
password=password,
|
||||||
host=host,
|
host=host,
|
||||||
|
port=port,
|
||||||
auth_plugin=auth_plugin,
|
auth_plugin=auth_plugin,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user