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

public method

Connects to the database by creating a PDO intance using the constructed DSN string. Will set specific options on the connection as provided.

Returns

boolean

Returns true if a database connection could be established, otherwise false.

Source

	public function connect() {
		if (!parent::connect()) {
			return false;
		}
		if ($this->_config['strict'] !== null && !$this->strict($this->_config['strict'])) {
			return false;
		}
		return true;
	}