private void updateInstall(HttpServletRequest request,
			HttpServletResponse response,String packagename) {
		// TODO Auto-generated method stub
		Connection connection = null;
		Statement stmt = null;
		ResultSet rs = null;
		int success_install_time = 0;
		try {
			/***** 1. 填写数据库相关信息(请查找数据库详情页) *****/
			String databaseName = " XOtaEYmhZZVwVbGuQRIl ";
			String host = "sqld.duapp.com";
			String port = "4050";
			String username = " Fv5gpqojQ1SfCX5jbWHCWmEY";// 用户名(api key);
			String password = "yDaGjxCpjgGMaxkQDwwFj7D84SU4XSvP";// 密码(secret
																	// key)
			String driverName = "com.mysql.jdbc.Driver";
			String dbUrl = "jdbc:mysql://";
			String serverName = host + ":" + port + "/";
			String connName = dbUrl + serverName + databaseName;

			/****** 2. 接着连接并选择数据库名为databaseName的服务器 ******/
			Class.forName(driverName);
			connection = DriverManager.getConnection(connName, username,
					password);
			stmt = connection.createStatement();
			/* 至此连接已完全建立，就可对当前数据库进行相应的操作了 */
			/* 3. 接下来就可以使用其它标准mysql函数操作进行数据库操作 */
			// 创建一个数据库表

			ResultSet res = stmt.executeQuery("select * from activeplugins where package_name = "+packagename);
			
			while (res.next()) {
				success_install_time = res.getInt(ActivePluginColumn.SUCCESS_INSTALL);
			}
			
			//成功安装次数次数+1
			String sql =  "UPDATE activeplugins SET success_install = "+(success_install_time+1)+" WHERE package_name = " +packagename;
			stmt.execute(sql);
			
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (rs != null) {
				try {
					rs.close();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}

			if (stmt != null) {
				try {
					stmt.close();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}

			if (connection != null) {
				try {
					connection.close();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
	}