make port configurable in MySQL engine
Closes #3117
commit82ac634070440d74381bf1b2dfecce05729e4d49
authorNoémi Ványi <sitbackandwait@gmail.com>
dateTue 11 Jan 2022, 22:49 (5 years ago)
parent8f07442
searx/engines/mysql_server.py+2
@@ -13,6 +13,7 @@ import mysql.connector
1313engine_type = 'offline'
1414auth_plugin = 'caching_sha2_password'
1515host = "127.0.0.1"
16+port = 3306
1617database = ""
1718username = ""
1819password = ""
@@ -36,6 +37,7 @@ def init(engine_settings):
3637 user=username,
3738 password=password,
3839 host=host,
40+ port=port,
3941 auth_plugin=auth_plugin,
4042 )
4143