Connection.reconnect

Reconnects to the server using the same connection settings originally used to create the Connection.

Optionally takes a mysql.protocol.constants.SvrCapFlags, allowing you to reconnect using a different set of server capability flags.

Normally, if the connection is already open, this will do nothing. However, if you request a different set of mysql.protocol.constants.SvrCapFlags then was originally used to create the Connection, the connection will be closed and then reconnected using the new mysql.protocol.constants.SvrCapFlags.

  1. void reconnect()
    class Connection
    void
    reconnect
    ()
  2. void reconnect(SvrCapFlags clientCapabilities)

Meta