lithium\data\source\database\adapter\MySql::__construct()
Overrides
lithium\core\Object::__construct()
Constructor. Constructs the MySQL adapter and sets the default port to 3306.
Parameters
-
array
$config
The available configuration options are the following. Further options are inherited from the parent classes. Typically, these parameters are set in
Connections::add()
, when adding the adapter to the list of active connections.'host'
string: Defaults to'localhost:3306'
.
Returns
voidSource
public function __construct(array $config = array()) {
$defaults = array('host' => 'localhost:3306');
parent::__construct($config + $defaults);
}