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.
This commit is contained in:
Sora39831 2026-04-03 11:20:54 +08:00
parent 0cfa431107
commit 90c5e72f1d

View file

@ -244,6 +244,7 @@ func buildMariaDBDSN(dbConfig config.DBConfig) string {
"parseTime": "True",
"loc": "Local",
},
AllowNativePasswords: true,
}
return cfg.FormatDSN()
}