Closed arthur-zhang closed 1 year ago
according to MySQL source code sql/auth/sha2_password.cc caching_sha2_password_authenticate, empty password should be set to '\0'
sql/auth/sha2_password.cc caching_sha2_password_authenticate
What's Changed:
modify calc_caching_sha2password code to correctly handle empty password
when database has empty password, current calc_caching_sha2password cannot handle it correctly. we should set to vec![0] instead of vec![]
Thanks for your contribution. Please check your commits status with DCO
ok, done
fix empty password login issue at caching_sha2_password, or it will fail to connect to empty password backend.
according to MySQL source code
sql/auth/sha2_password.cc caching_sha2_password_authenticate
, empty password should be set to '\0'What's Changed:
modify calc_caching_sha2password code to correctly handle empty password
when database has empty password, current calc_caching_sha2password cannot handle it correctly. we should set to vec![0] instead of vec![]