This commit is contained in:
lanicc
2021-10-09 14:53:00 +08:00
committed by GitHub
parent 911711248c
commit d79431c7e5
3 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ public class MysqlConnector {
private SocketChannel channel;
private volatile boolean dumping = false;
// mysql connectinnId
// mysql connectionId
private long connectionId = -1;
private AtomicBoolean connected = new AtomicBoolean(false);
// serverVersion
@@ -169,7 +169,7 @@ public class MysqlConnector {
} else if (body[0] == -2) {
throw new IOException("Unexpected EOF packet at handshake phase.");
} else {
throw new IOException("unpexpected packet with field_count=" + body[0]);
throw new IOException("Unexpected packet with field_count=" + body[0]);
}
}
HandshakeInitializationPacket handshakePacket = new HandshakeInitializationPacket();
@@ -273,7 +273,7 @@ public class MysqlConnector {
err.fromBytes(body);
throw new IOException("Error When doing Client Authentication:" + err.toString());
} else {
throw new IOException("unpexpected packet with field_count=" + body[0]);
throw new IOException("Unexpected packet with field_count=" + body[0]);
}
}
}
@@ -304,7 +304,7 @@ public class MysqlConnector {
err.fromBytes(body);
throw new IOException("Error When doing Client Authentication:" + err.toString());
default:
throw new IOException("unpexpected packet with field_count=" + body[0]);
throw new IOException("Unexpected packet with field_count=" + body[0]);
}
}