You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I always use the library link AnalyticDB of Ali cloud, it is compatible with the MySQL protocol, but I recently updated the MySQL driver, after I get error message "unknown authentication plugin name ' '", after screening, found the following information, I did some adjustment to apply my application, hope these information can have some help
I made the following changes to accommodate my code,Line[232:236]
before
if end := bytes.IndexByte(data[pos:], 0x00); end != -1 {
pluginName = string(data[pos : pos+end])
} else {
pluginName = data[pos:]
}
after
if end := bytes.IndexByte(data[pos:], 0x00); end != -1 {
pluginName = string(data[pos : pos+end])
} else {
if p := string(data[pos:]); p != "" {
pluginName = p
}
}
The text was updated successfully, but these errors were encountered:
mysql/packets.go
Line 235 in 64db0f7
Before I always use the library link AnalyticDB of Ali cloud, it is compatible with the MySQL protocol, but I recently updated the MySQL driver, after I get error message "unknown authentication plugin name ' '", after screening, found the following information, I did some adjustment to apply my application, hope these information can have some help
I printer
data
variable:I made the following changes to accommodate my code,Line[232:236]
before
after
The text was updated successfully, but these errors were encountered: