diff --git a/core/admin/mailu/configuration.py b/core/admin/mailu/configuration.py index 912a0204..1ad9c655 100644 --- a/core/admin/mailu/configuration.py +++ b/core/admin/mailu/configuration.py @@ -98,7 +98,7 @@ class ConfigManager: DB_TEMPLATES = { 'sqlite': 'sqlite:////{SQLITE_DATABASE_FILE}', 'postgresql': 'postgresql://{DB_USER}:{DB_PW}@{DB_HOST}/{DB_NAME}', - 'mysql': 'mysql://{DB_USER}:{DB_PW}@{DB_HOST}/{DB_NAME}' + 'mysql': 'mysql+mysqlconnector://{DB_USER}:{DB_PW}@{DB_HOST}/{DB_NAME}' } def __init__(self): diff --git a/towncrier/newsfragments/2432.bugfix b/towncrier/newsfragments/2432.bugfix new file mode 100644 index 00000000..66144b14 --- /dev/null +++ b/towncrier/newsfragments/2432.bugfix @@ -0,0 +1 @@ +Switch from mysqlclient to mysql-connector explicitely