lithium\data\source\database\adapter\MySql::__construct()

public method

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

void

Source

	public function __construct(array $config = array()) {
		$defaults = array('host' => 'localhost:3306');
		parent::__construct($config + $defaults);
	}