public void getConnected() throws SQLException {

		try{
			Class.forName("com.mysql.jdbc.Driver");
			connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/ccc", "root", "root");
		}
		catch(ClassNotFoundException error){
			System.out.println("Error:"+ error.getMessage());
		}
		catch(SQLException error){
			System.out.println("Error:"+ error.getMessage());
		}
		/*finally{
			if(connection!=null)
				try{connection.close();}
			catch(SQLException ignore){}
		}*/

	}