String host = "localhost"; int port = 3306; String dbname = "test";
DataSource ds = getDataSource(env, dsn);
  public PDO(Env env,             String dsn,             @Optional String user,             @Optional String password,             @Optional ArrayValue options)  {    _env = env;    _dsn = dsn;    _error = new PDOError(_env);    // XXX: following would be better as annotation on destroy() method    _env.addClose(this);    try {      String host = "localhost";      int port = 3306;      String dbname = "test";      String driver = "com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource";      String url = "jdbc:mysql://" + host + ":" + port + "/" + dbname;      _conn = env.getConnection(driver, url, user, password);    } catch (Exception e) {      env.warning("A link to the server could not be established.");      _error.error(e);    }  }