public Connection GetConnection() {

        try {
            Class.forName("com.mysql.jdbc.Driver");
            servidor = "jdbc:mysql://localhost/tienda";
            usuario = "root";
            password = "mysql";
            conexion = DriverManager.getConnection(servidor, usuario, password);
            
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Fachada.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Fachada.class.getName()).log(Level.SEVERE, null, ex);
        }
        return conexion;
    }