Here is a part of my code. I need to build a connection to mysql data base that contains user names and passwords but all i get is a timezone error"java.sql.SQLException: The server time zone value 'Mitteleuropäische Sommerzeit' is unrecognized or represents more than one time zone." and i dont know what to do next. im using a 8.01 connector. Any help is most welcome :)
public static Connection getCon(){
Connection con=null;
try{
Class.forName("com.mysql.cj.jdbc.Driver");
con=DriverManager.getConnection(
"jdbc:mysql://localhost:3305/world","test","l1feisjapan");
}catch(Exception e){System.out.println(e);}
return con;
}
public static boolean validate(String name,String password){
boolean status=false;
try{
Connection con=getCon();
PreparedStatement ps=con.prepareStatement("select * from User_accountant where name=? and password=?");
ps.setString(1,name);
ps.setString(2,password);
ResultSet rs=ps.executeQuery();
status=rs.next();
con.close();
}catch(Exception e){System.out.println(e);}
return status;