// mysqli_connect is an alias of mysqli::__construct() $mysqli = new mysqli("host", "user", "password", "database", 'port', 'socket');