public static function connectFromString($sql_string){

		list($username, $sql_string) = explode(':', trim($sql_string), 2);

		$password = substr($sql_string, 0, strrpos($sql_string, '@'));

		list($server, $database) =
			explode('/', substr(strrchr($sql_string, '@'), 1));

		return new self($server, $username, $password, $database);
	}