fix(mysql): support sha256_password authentication

This commit is contained in:
t8y2 2026-05-27 12:33:11 +08:00
parent 12abe9d0e0
commit 556edaf193
2 changed files with 7 additions and 6 deletions

9
Cargo.lock generated
View File

@ -4521,8 +4521,7 @@ dependencies = [
[[package]]
name = "mysql-common-derive"
version = "0.32.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66f62cad7623a9cb6f8f64037f0c4f69c8db8e82914334a83c9788201c2c1bfa"
source = "git+https://github.com/t8y2/rust_mysql_common.git?rev=5b30d4912ebb23728f1196b2b9eb928eebb73f92#5b30d4912ebb23728f1196b2b9eb928eebb73f92"
dependencies = [
"darling 0.20.11",
"heck 0.5.0",
@ -4539,8 +4538,7 @@ dependencies = [
[[package]]
name = "mysql_async"
version = "0.36.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d1d9585dc9058886ff3a1f48a23024dd1d054264dee7c5ae0e4bd640c953bee5"
source = "git+https://github.com/t8y2/mysql_async.git?rev=7b565fbe76a168828189f7b98fe3b1989344c54e#7b565fbe76a168828189f7b98fe3b1989344c54e"
dependencies = [
"bytes",
"crossbeam-queue",
@ -4571,8 +4569,7 @@ dependencies = [
[[package]]
name = "mysql_common"
version = "0.35.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbb9f371618ce723f095c61fbcdc36e8936956d2b62832f9c7648689b338e052"
source = "git+https://github.com/t8y2/rust_mysql_common.git?rev=5b30d4912ebb23728f1196b2b9eb928eebb73f92#5b30d4912ebb23728f1196b2b9eb928eebb73f92"
dependencies = [
"base64 0.22.1",
"bitflags 2.11.1",

View File

@ -6,6 +6,10 @@ members = ["src-tauri", "crates/dbx-core", "crates/dbx-web"]
tokio-postgres = { git = "https://github.com/t8y2/tokio-postgres-gaussdb.git", branch = "master" }
postgres-types = { git = "https://github.com/t8y2/tokio-postgres-gaussdb.git", branch = "master" }
postgres-protocol = { git = "https://github.com/t8y2/tokio-postgres-gaussdb.git", branch = "master" }
# Temporary compatibility patch for MySQL accounts using the deprecated
# sha256_password auth plugin. Remove after upstream support lands.
mysql_async = { git = "https://github.com/t8y2/mysql_async.git", rev = "7b565fbe76a168828189f7b98fe3b1989344c54e" }
mysql_common = { git = "https://github.com/t8y2/rust_mysql_common.git", rev = "5b30d4912ebb23728f1196b2b9eb928eebb73f92" }
[profile.release]
panic = "abort"