File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ func (c *Conn) compareSha256PasswordAuthData(clientAuthData []byte, credential C
9090 if credential .Password == "" {
9191 return nil
9292 }
93- return ErrAccessDenied
93+ return ErrAccessDeniedNoPassword
9494 }
9595 if tlsConn , ok := c .Conn .Conn .(* tls.Conn ); ok {
9696 if ! tlsConn .ConnectionState ().HandshakeComplete {
@@ -129,7 +129,7 @@ func (c *Conn) compareCacheSha2PasswordAuthData(clientAuthData []byte) error {
129129 if c .credential .Password == "" {
130130 return nil
131131 }
132- return ErrAccessDenied
132+ return ErrAccessDeniedNoPassword
133133 }
134134 // the caching of 'caching_sha2_password' in MySQL, see: https://dev.mysql.com/worklog/task/?id=9591
135135 // check if we have a cached value
You can’t perform that action at this time.
0 commit comments