mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 05:34:17 +00:00
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:
parent
0cfa431107
commit
90c5e72f1d
1 changed files with 1 additions and 0 deletions
|
|
@ -244,6 +244,7 @@ func buildMariaDBDSN(dbConfig config.DBConfig) string {
|
|||
"parseTime": "True",
|
||||
"loc": "Local",
|
||||
},
|
||||
AllowNativePasswords: true,
|
||||
}
|
||||
return cfg.FormatDSN()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue