From 90c5e72f1dfa7fcff1c446e71187a3e99574d059 Mon Sep 17 00:00:00 2001 From: Sora39831 <540587985@qq.com> Date: Fri, 3 Apr 2026 11:20:54 +0800 Subject: [PATCH] fix: set AllowNativePasswords in MariaDB DSN to fix auth failure Zero-value struct literal caused allowNativePasswords=false to be written into the DSN, rejecting mysql_native_password auth from the MariaDB server. --- database/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/database/db.go b/database/db.go index 74812669..fd1da3fa 100644 --- a/database/db.go +++ b/database/db.go @@ -244,6 +244,7 @@ func buildMariaDBDSN(dbConfig config.DBConfig) string { "parseTime": "True", "loc": "Local", }, + AllowNativePasswords: true, } return cfg.FormatDSN() }