Class SendChangeDbPacket


  • public class SendChangeDbPacket
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void send​(PacketOutputStream pos, java.lang.String database)
      Send a COM_INIT_DB request to specify the default schema for the connection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SendChangeDbPacket

        public SendChangeDbPacket()
    • Method Detail

      • send

        public static void send​(PacketOutputStream pos,
                                java.lang.String database)
                         throws java.io.IOException
        Send a COM_INIT_DB request to specify the default schema for the connection.
        Parameters:
        pos - Write outputStream
        database - database name
        Throws:
        java.io.IOException - if connection problem occur