driver

Issues a Class.forName request to load the named class.

Syntax

DRIVER DriverNameString

Description

Takes the value of the DriverNameString and issues a Class.forName request to load the named class. The class is expected to be a JDBC driver that registers itself with java.sql.DriverManager.

Note: You must set the CLASSPATH environment variable before launching gfxd.

In GemFire XD, you can use this command to connect to an external database that is used to load or write cached data.

If the Driver command succeeds, a new gfxd prompt appears for the next command.

Example

This example loads the Apache Derby client driver. This enables you to make a connection to the database, assuming that a Derby Network Server is available on the example host and port.

gfxd> driver 'org.apache.derby.jdbc.ClientDriver';
gfxd> connect 'jdbc:derby://armenia:29303/myDB;create=true';
gfxd>