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
Future _handleData(Buffer buffer) async {
_readyForHeader = true;
_headerBuffer.reset();
try {
var response = _handler?.processResponse(buffer);
if (_handler is HandshakeHandler) {
_useCompression = (_handler as HandshakeHandler).useCompression;
_useSSL = (_handler as HandshakeHandler).useSSL;
}
if (response?.nextHandler != null) {
// if handler.processResponse() returned a Handler, pass control to that handler now
_handler = response!.nextHandler;
await sendBuffer(_handler!.createRequest());
if (_useSSL && _handler is SSLHandler) {
_log.fine('Use SSL');
await _socket.startSSL();
_handler = (_handler as SSLHandler).nextHandler;
await sendBuffer(_handler!.createRequest());
_log.fine('Sent buffer');
return;
}
}
if (response?.finished == true) {
_log.fine('Finished $_handler');
_finishAndReuse();
}
if (response?.hasResult == true) {
if (_completer?.isCompleted == true) {
_completer?.completeError(StateError('Request has already completed'));
}
_completer?.complete(response!.result);
}
} on MySqlException catch (e, st) {
// This clause means mysql returned an error on the wire. It is not a fatal error
// and the connection can stay open.
_log.fine('completing with MySqlException: $e');
_finishAndReuse();
handleError(e, st: st, keepOpen: true);
} catch (e, st) {
// Errors here are fatal_finishAndReuse();
handleError(e, st: st);
}
}
handleError(e, st: st);
An exception is thrown when this line of code is executed
MySQL Client Error: Authentication plugin not supported: caching_sha2_password
The text was updated successfully, but these errors were encountered:
An exception is thrown when this line of code is executed
MySQL Client Error: Authentication plugin not supported: caching_sha2_password
The text was updated successfully, but these errors were encountered: