transport.setAuthenticator(authenticator);
transport.setSocketFactory(new SocketFactoryImpl());
transport.connect("localhost", 3306);
//
final ComQuery command = new ComQuery();
command.setSql(StringColumn.valueOf("select * from test.abc where id < 6".getBytes()));
transport.getOutputStream().writePacket(command);
transport.getOutputStream().flush();
//
Packet packet = transport.getInputStream().readPacket();