When I tried to connect to my DB from IntelliJ and after I insert to the modules the connector file the Run console wrote to me that issue:
Caused by: java.sql.SQLException: The server time zone value 'Jerusalem Daylight Time' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
And this is the code:
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/login","root","Password");
System.out.println("Connection: " + con.getCatalog());
Thanks.