Browse Source

Merge pull request #742 from return42/mysql

[mod] engine mysql_server: make port configurable
Alexandre Flament 3 years ago
parent
commit
32874dbf7f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      searx/engines/mysql_server.py

+ 2 - 0
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,
     )