Configuration
Configuration keys for the Solar_Sql_Adapter_MysqlReplicated
class.
host
(string) Host specification (typically 'localhost').
Default:
null
port
(string) Port number for the host name.
Default:
null
sock
(string) The Unix socket for the connection. Should not be used with host and port.
Default:
null
user
(string) Connect to the database as this username.
Default:
null
pass
(string) Password associated with the username.
Default:
null
name
(string) Database name (or file path, or TNS name).
Default:
null
profiling
(bool) Turn on query profiling?
Default:
false
cache
(dependency) The cache to use, if any, for the lists of table names, table columns, etc.
Default:
array ( 'adapter' => 'Solar_Cache_Adapter_Var', )
request
(dependency) A Solar_Request dependecy. Defaults to the 'request' registry entry.
Default:
'request'
slaves
(array) An array of arrays, each representing the connection values for a different slave server. The non-slave connection values are for the master server. For example: {{code: php $config = array( // these apply to the master and all slaves 'profiling' => false, 'cache' => array('adapter' => 'Solar_Cache_Adapter_Var'), // master server connection 'host' => null, 'port' => null, 'sock' => null, 'user' => null, 'pass' => null, 'name' => null, // all slave servers 'slaves' => array( // first slave server 0 => array( 'host' => null, 'port' => null, 'sock' => null, 'user' => null, 'pass' => null, 'name' => null, ), // second slave server 1 => array( 'host' => null, 'port' => null, 'sock' => null, 'user' => null, 'pass' => null, 'name' => null, ), // ... etc ... ), ); }}
Default:
array ( )