public setConnectParams ( mixed $host, string $username = null, string $password = null, string $db = null, string $label = 'n/a', array $attr = null ) | ||
$host | mixed | string (hostname) or associative array with parameter to use |
$username | string | user name to use for login |
$password | string | password to use for login |
$db | string | optional database to select |
$label | string | a "name" reference for the connection, used for profiling |
$attr | array | connection attribute list (i.e. PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") |