|GemFire XD Reference / gfxd Interactive Commands|
Connects to the database indicated by the ConnectionURLString.
CONNECT ConnectionURLString [ PROTOCOL Identifier ] [ AS Identifier ]
Connects to the database indicated by the ConnectionURLString. You have the option of specifying a name for your connection. Use the Set Connection command to switch between connections. If you do not name a connection, the system generates a name automatically.
You also have the option of specifying a named protocol previously created with the Protocol command.
If the connect succeeds, the connection becomes the current one and gfxd displays a new prompt for the next command to be entered. If you have more than one open connection, the name of the connection appears in the prompt.
All further commands are processed against the new, current connection.
gfxd> protocol 'jdbc:derby:'; gfxd> connect '//armenia:29303/myDB;user=a;password=a' as db5Connection; gfxd> show connections; DB5CONNECTION* - jdbc:derby://armenia:29303/myDB * = current connection