|GemFire XD Reference / gfxd Interactive Commands|
Issues a Class.forName request to load the named class.
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.
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.
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>