Amigos, me deparo com o seguinte erro:
erro ao conectar. Erro: The server time zone value ‘Hora Padr?o de Buenos Aires’ 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.
código simples em maven.
public class ConectarMySQL {
public static void main(String[] args) {
Connection conexao = null;
try{
String url = "jdbc:mysql://localhost:3306/agenda?useSSL=false";
String usuario = "root";
String senha = "123456";
conexao = DriverManager.getConnection(url,usuario,senha);
System.out.println("Conectado!");
conexao.close();
}catch (SQLException e) {
System.out.println("erro ao conectar. Erro: " +e.getMessage());
}
}
}
o que pode ser?