skip to main content
Drivers for 32-Bit and 64-Bit Platforms : The MySQL Wire Protocol Driver : Connection Options Descriptions : Alternate Servers
 

Try DataDirect Drivers Now
Alternate Servers

Attribute

AlternateServers (ASRV)

Purpose

A list of alternate database servers to which the driver tries to connect if the primary database server is unavailable. Specifying a value for this option enables connection failover for the driver. The value you specify must be in the form of a string that defines the physical location of each alternate server. All of the other required connection information for each alternate server is the same as what is defined for the primary server connection.

Valid Values

(Database=databasename:HostName=hostvalue:PortNumber=portvalue[, . . .])
You must specify the database name, host name, and port number. The string has the format:

Example

The following Alternate Servers value defines two alternate database servers for connection failover:
(Database=MySQLdb1:HostName=MySQLhost1:PortNumber=5177,
Database=MySQLdb2:HostName=MySQLhost2:PortNumber=5178)

Default

None

GUI Tab

Failover tab